X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2FMain.qc;h=58dfe22830b1701ff4406784e4a5a7533c723c4b;hb=85c3ccb68b2ca1d79c378ffba18f505da1b06637;hp=996d88697fca95dffd18935f162436aa0f5e3e69;hpb=3f27259aecb0056afa4a9327280b6eac72d794a4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 996d88697..58dfe2283 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -83,10 +83,6 @@ void CSQC_Init(void) break; maxclients = i; - //ctf_temp_1 = ""; - // localcmd("alias order \"cmd order $*\""); enable if ctf-command thingy is used - //registercmd("ctf_menu"); - registercmd("ons_map"); registercmd("hud_configure"); registercmd("hud_save"); //registercmd("menu_action"); @@ -967,13 +963,23 @@ void CSQC_Ent_Update(float bIsNewEntity) #ifdef DP_CSQC_ENTITY_REMOVE_IS_B0RKED if(self.enttype) - if(t != self.enttype) + { + if(t != self.enttype || bIsNewEntity) { //print(_("A CSQC entity changed its type!\n")); - print(sprintf(_("A CSQC entity changed its type! (edict: %d, classname: %s)\n"), num_for_edict(self), self.classname)); + print(sprintf(_("A CSQC entity changed its type! (edict: %d, type: %d -> %d)\n"), num_for_edict(self), self.enttype, t)); Ent_Remove(); bIsNewEntity = 1; } + } + else + { + if(!bIsNewEntity) + { + print(sprintf(_("A CSQC entity appeared out of nowhere! (edict: %d, type: %d)\n"), num_for_edict(self), t)); + bIsNewEntity = 1; + } + } #endif self.enttype = t; switch(t)