]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor cleanups
authorterencehill <piuntn@gmail.com>
Tue, 5 Oct 2021 16:39:41 +0000 (18:39 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 5 Oct 2021 16:39:41 +0000 (18:39 +0200)
qcsrc/client/items/items.qc
qcsrc/client/view.qc

index f94d36cf6712f2b1022f1940de5ec41d6d60930f..4c46ae0c4ae7d9455e6374ed944be6dfc3e9df12 100644 (file)
@@ -135,9 +135,9 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)
 
     if(sf & ISF_LOCATION)
     {
-        this.origin = ReadVector();
-        setorigin(this, this.origin);
-        this.oldorigin = this.origin;
+        vector org = ReadVector();
+        setorigin(this, org);
+        this.oldorigin = org;
     }
 
     if(sf & ISF_ANGLES)
@@ -229,7 +229,7 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)
         precache_model(this.mdl);
         _setmodel(this, this.mdl);
 
-       this.skin = ReadByte();
+        this.skin = ReadByte();
 
         setsize(this, '-16 -16 0', '16 16 48');
     }
index 6a77db8cc834c718b7607c42a5e3a5f1d71b0b16..d423337df070b8d6818c8599623277d4c647c291 100644 (file)
@@ -241,8 +241,7 @@ vector bobmodel_ofs(entity view)
 
 void viewmodel_animate(entity this)
 {
-       if (autocvar_chase_active) return;
-       if (STAT(HEALTH) <= 0) return;
+       if (autocvar_chase_active || STAT(HEALTH) <= 0) return;
 
        entity view = CSQCModel_server2csqc(player_localentnum - 1);