Port some minor code fixes from the default-erasable branch
authorMario <mario.mario@y7mail.com>
Fri, 7 Aug 2020 16:29:16 +0000 (02:29 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 7 Aug 2020 16:29:47 +0000 (02:29 +1000)
qcsrc/client/hud/panel/centerprint.qc
qcsrc/common/gamemodes/gamemode/nexball/sv_weapon.qc
qcsrc/common/weapons/all.qc

index 2fcf130..15f46d2 100644 (file)
@@ -281,7 +281,7 @@ void HUD_CenterPrint()
                else // Expiring soon, so fade it out.
                        a = (centerprint_expire_time[j] - time) / max(0.0001, autocvar_hud_panel_centerprint_fade_out);
 
-               if(centerprint_msgID[j] == CPID_TIMEIN)
+               if(centerprint_msgID[j] == ORDINAL(CPID_TIMEIN))
                        a = 1;
 
                // while counting down show it anyway in order to hold the current message position
index 02b57b2..d3d3a6a 100644 (file)
@@ -44,7 +44,7 @@ METHOD(BallStealer, wr_setup, void(BallStealer this, entity actor, .entity weapo
 
 METHOD(BallStealer, wr_reload, void(entity thiswep, entity actor, .entity weaponentity))
 {
-    TC(BallStealer, this);
+    TC(BallStealer, thiswep);
 }
 
 METHOD(BallStealer, wr_checkammo1, bool(BallStealer this, entity actor, .entity weaponentity))
index b5bf64a..bb4ae21 100644 (file)
@@ -565,7 +565,7 @@ REGISTER_NET_TEMP(wframe)
 #ifdef CSQC
 NET_HANDLE(wframe, bool isNew)
 {
-       int fr = ReadByte();
+       WFRAME fr = ReadByte();
        float t = ReadFloat();
     int slot = ReadByte();
        bool restartanim = ReadByte();