]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix bugs in last change :)
authorRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 09:10:37 +0000 (10:10 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 09:10:51 +0000 (10:10 +0100)
qcsrc/client/Main.qc
qcsrc/client/csqcmodel_hooks.qc
qcsrc/common/csqcmodel_settings.qh
qcsrc/csqcmodellib/cl_model.qc
qcsrc/csqcmodellib/cl_model.qh

index 3cca609fd6def11949ea59f9e8c95b34ec40a561..fd8afe117c49d2354e0768f3406eabd67b49fdf0 100644 (file)
@@ -1049,7 +1049,7 @@ void CSQC_Ent_Update(float bIsNewEntity)
                case ENT_CLIENT_ACCURACY: Ent_ReadAccuracy(); break;
                case ENT_CLIENT_AUXILIARYXHAIR: Net_AuXair2(bIsNewEntity); break;
                case ENT_CLIENT_TURRET: ent_turret(); break; 
-               case ENT_CLIENT_MODEL: CSQCModel_Read(); break; 
+               case ENT_CLIENT_MODEL: CSQCModel_Read(bIsNewEntity); break; 
                default:
                        //error(strcat(_("unknown entity type in CSQC_Ent_Update: %d\n"), self.enttype));
                        error(sprintf(_("Unknown entity type in CSQC_Ent_Update (enttype: %d, edict: %d, classname: %s)\n"), self.enttype, num_for_edict(self), self.classname));
index e196396f0d9fa6bb00d0c42dd1774e63da6fa1ee..33e093adc5a7d9b25aa594c34bfd1d77e1ad15bc 100644 (file)
@@ -162,15 +162,15 @@ void CSQCPlayer_FallbackFrame_PostUpdate(float isnew)
 #define FIX_FRAMETIME(f,ft) \
                switch(self.f) \
                { \
-                       case 0: // anim_die1 \
-                       case 1: // anim_die2 \
+                       case 0: \
+                       case 1: \
                                self.ft = 0; \
                                break; \
                }
-               FIX_FRAMETIME(frame, frame1time);
-               FIX_FRAMETIME(frame2, frame2time);
-               FIX_FRAMETIME(frame3, frame3time);
-               FIX_FRAMETIME(frame4, frame4time);
+               FIX_FRAMETIME(frame, frame1time)
+               FIX_FRAMETIME(frame2, frame2time)
+               FIX_FRAMETIME(frame3, frame3time)
+               FIX_FRAMETIME(frame4, frame4time)
        }
 }
 float CSQCPlayer_FallbackFrame(float f)
index 2164ecae4e7afd6a3c81aaa10ee07439eff0ab21..0f3ca3859ad6b6274f032358d06d07e27fb0869f 100644 (file)
@@ -33,9 +33,9 @@
 
 // add hook function calls here
 #define CSQCMODEL_HOOK_PREUPDATE \
-       CSQCModel_Hook_PreUpdate(isplayer, islocalplayer);
+       CSQCModel_Hook_PreUpdate(isnew, isplayer, islocalplayer);
 #define CSQCMODEL_HOOK_POSTUPDATE \
-       CSQCModel_Hook_PostUpdate(isplayer, islocalplayer);
+       CSQCModel_Hook_PostUpdate(isnew, isplayer, islocalplayer);
 #define CSQCMODEL_HOOK_PREDRAW \
        CSQCModel_Hook_PreDraw(isplayer, islocalplayer);
 #define CSQCPLAYER_HOOK_POSTCAMERASETUP
index 03226613b6afcf7641b99fe55dddd539cb6907c6..24f3c60e09f25ef6b341048464033c6cb254a705 100644 (file)
@@ -170,7 +170,7 @@ void CSQCModel_Draw()
        self.csqcmodel_teleported = 0;
 }
 
-void CSQCModel_Read()
+void CSQCModel_Read(float isnew)
 {
        float sf;
        sf = ReadShort();
index d386565336d0817902d7e19c4fb15328361eb9c5..e8ea9012cb3e16ffc6b1f761c875da7672823ef3 100644 (file)
@@ -20,7 +20,7 @@
  * IN THE SOFTWARE.
  */
 
-void CSQCModel_Read();
+void CSQCModel_Read(float isnew);
 
 #define CSQCMODEL_IF(cond)
 #define CSQCMODEL_ENDIF