]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more isNew debugging
authorRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 18:31:48 +0000 (20:31 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 25 Oct 2011 18:31:48 +0000 (20:31 +0200)
qcsrc/client/Main.qc

index 7abf7208788d9256deb299ad538dcaa134480d7a..554c8a86accf693d03d289551179bd649dda9802 100644 (file)
@@ -964,13 +964,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)