X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fmenu.qc;h=89966dde15a41a017a70e7fef9b09e8bc8c50c5e;hb=86c9dc7c3696c329496b06375c1e79fb407401ce;hp=669e08fe726dbed788ad2cd7e363d4a31e4edb9f;hpb=9eb82dd6fc682e3ddecd471835f9047816236342;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index 669e08fe7..89966dde1 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -2,8 +2,10 @@ #include "oo/classes.qc" #include "xonotic/util.qh" -#include "../common/weapons/weapons.qh" +#include "../common/items/all.qh" +#include "../common/weapons/all.qh" #include "../common/mapinfo.qh" +#include "../common/mutators/base.qh" /////////////////////////////////////////////// // Menu Source File @@ -61,7 +63,7 @@ void m_init() cvar_set("_menu_prvm_language", prvm_language); #ifdef WATERMARK - dprintf("^4MQC Build information: ^1%s\n", WATERMARK); + LOG_TRACEF("^4MQC Build information: ^1%s\n", WATERMARK); #endif // list all game dirs (TEST) @@ -74,13 +76,12 @@ void m_init() s = getgamedirinfo(i, GETGAMEDIRINFO_NAME); if (!s) break; - dprint(s, ": ", getgamedirinfo(i, GETGAMEDIRINFO_DESCRIPTION)); + LOG_TRACE(s, ": ", getgamedirinfo(i, GETGAMEDIRINFO_DESCRIPTION)); } } // needs to be done so early because of the constants they create - CALL_ACCUMULATED_FUNCTION(RegisterWeapons); - CALL_ACCUMULATED_FUNCTION(RegisterGametypes); + static_init(); RegisterSLCategories(); @@ -251,7 +252,7 @@ void m_keyup (float key, float ascii) if(mouseButtonsPressed < 0) { mouseButtonsPressed = 0; - dprint("Warning: released an already released button\n"); + LOG_TRACE("Warning: released an already released button\n"); } } if(key == K_ALT) menuShiftState -= (menuShiftState & S_ALT); @@ -302,7 +303,7 @@ void m_keydown(float key, float ascii) if(mouseButtonsPressed > 10) { mouseButtonsPressed = 10; - dprint("Warning: pressed an already pressed button\n"); + LOG_TRACE("Warning: pressed an already pressed button\n"); } } if(key == K_ALT) menuShiftState |= S_ALT;