send speedaward_alltimebest as Int24_t as well...
authorfruitiex <fruitiex@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sun, 7 Feb 2010 08:06:04 +0000 (08:06 +0000)
committerfruitiex <fruitiex@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sun, 7 Feb 2010 08:06:04 +0000 (08:06 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8621 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/client/Main.qc
data/qcsrc/server/cl_physics.qc

index 5786fc5..8c7c711 100644 (file)
@@ -1100,7 +1100,7 @@ void Net_ReadRace()
                        race_speedaward_holder = strzone(ReadString());
                        break;
                case RACE_NET_SPEED_AWARD_BEST:
-                       race_speedaward_alltimebest = ReadShort();
+                       race_speedaward_alltimebest = ReadInt24_t();
                        if(race_speedaward_alltimebest_holder)
                                strunzone(race_speedaward_alltimebest_holder);
                        race_speedaward_alltimebest_holder = strzone(ReadString());
index 9e29209..8acd2e6 100644 (file)
@@ -583,7 +583,7 @@ void race_send_speedaward_alltimebest(float msg)
        WriteByte(msg, SVC_TEMPENTITY);
        WriteByte(msg, TE_CSQC_RACE);
        WriteByte(msg, RACE_NET_SPEED_AWARD_BEST);
-       WriteShort(msg, floor(speedaward_alltimebest+0.5));
+       WriteInt24_t(msg, floor(speedaward_alltimebest+0.5));
        WriteString(msg, speedaward_alltimebest_holder);
 }