X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fitem%2Fnexposee.c;h=ca7ab8fc3785c479c27bee31ee099268a80a3659;hb=271e99698c34b55bc70af1bc49a66b2d6505a480;hp=97eabd7d66beffd07e0263f5474a63c572db5270;hpb=db7073760c3dbc7726f7f946aa108120d7a7100a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/item/nexposee.c b/qcsrc/menu/item/nexposee.c index 97eabd7d6..ca7ab8fc3 100644 --- a/qcsrc/menu/item/nexposee.c +++ b/qcsrc/menu/item/nexposee.c @@ -92,7 +92,7 @@ void Nexposee_calc(entity me) float scale; entity e, e2; vector emins, emaxs, e2mins, e2maxs; - + for(scale = 0.7;; scale *= 0.99) { Nexposee_Calc_Scale(me, scale); @@ -228,7 +228,7 @@ float Nexposee_mousePress(entity me, vector pos) } else if(me.animationState == 2) { - if not(SUPER(Nexposee).mousePress(me, pos)) + if (!(SUPER(Nexposee).mousePress(me, pos))) { me.animationState = 3; SUPER(Nexposee).setFocus(me, NULL); @@ -291,14 +291,14 @@ float Nexposee_keyDown(entity me, float scan, float ascii, float shift) { if(me.selectedChild) me.selectedChild = me.selectedChild.prevSibling; - if not(me.selectedChild) + if (!me.selectedChild) me.selectedChild = me.lastChild; } else { if(me.selectedChild) me.selectedChild = me.selectedChild.nextSibling; - if not(me.selectedChild) + if (!me.selectedChild) me.selectedChild = me.firstChild; } } @@ -331,7 +331,7 @@ float Nexposee_keyDown(entity me, float scan, float ascii, float shift) } if(me.focusedChild) me.selectedChild = me.focusedChild; - if not(me.selectedChild) + if (!me.selectedChild) me.animationState = 0; SUPER(Nexposee).setFocus(me, NULL); return 1;