X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fitem%2Fcontainer.c;h=b09cb01a96cb4f3e7d4608ab98b54f033e8ba6f6;hb=786db02b0c9aa618c581b7c3fe7392ad114797d8;hp=6241cee03968c077249d62bfbdcb8b81a91ec3a9;hpb=40c99b50ee69f18ebe88918e72a4598822c41ea0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/item/container.c b/qcsrc/menu/item/container.c index 6241cee03..b09cb01a9 100644 --- a/qcsrc/menu/item/container.c +++ b/qcsrc/menu/item/container.c @@ -85,7 +85,7 @@ void Container_showNotify(entity me) void Container_hideNotify(entity me) { entity e; - if not(me.shown) + if (!me.shown) return; me.shown = 0; for(e = me.firstChild; e; e = e.nextSibling) @@ -347,7 +347,7 @@ void Container_removeItem(entity me, entity other) void Container_setFocus(entity me, entity other) { if(other) - if not(me.focused) + if (!me.focused) error("Trying to set focus in a non-focused control!"); if(me.focusedChild == other) return;