summaryrefslogtreecommitdiff
path: root/src/fpsgame/client.cpp
diff options
context:
space:
mode:
authorxolatile2025-07-20 12:18:48 +0200
committerxolatile2025-07-20 12:18:48 +0200
commitc46daa31f8e0339aed12736699d0003d27f1fc7e (patch)
tree11083f9c5eced31cf246c5feadc2c96d66e165cb /src/fpsgame/client.cpp
parente9ad09c58820b31743251f793f30e5d4d49a0dca (diff)
downloadxolatile-badassbug-c46daa31f8e0339aed12736699d0003d27f1fc7e.tar.xz
xolatile-badassbug-c46daa31f8e0339aed12736699d0003d27f1fc7e.tar.zst
Most warnings fixed, ignoring one warning for now...
Diffstat (limited to 'src/fpsgame/client.cpp')
-rw-r--r--src/fpsgame/client.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/fpsgame/client.cpp b/src/fpsgame/client.cpp
index 35aabd4..609ce93 100644
--- a/src/fpsgame/client.cpp
+++ b/src/fpsgame/client.cpp
@@ -1100,6 +1100,7 @@ namespace game
d->health = getint(p);
d->maxhealth = getint(p);
d->armour = getint(p);
+ d->maxarmour = getint(p);
d->armourtype = getint(p);
if(resume && d==player1)
{
@@ -1171,7 +1172,6 @@ namespace game
int val = clamp(getint(p), 10, 1000), cn = getint(p);
fpsent *a = cn >= 0 ? getclient(cn) : NULL;
if(!demopacket) gamespeed = val;
- extern int slowmosp;
if(a) conoutf("%s set gamespeed to %d", colorname(a), val);
else conoutf("gamespeed is %d", val);
break;
@@ -1299,15 +1299,7 @@ namespace game
break;
case N_SWITCHMODEL:
- {
- int model = getint(p);
- if(d)
- {
- d->playermodel = 0;
- if(d->ragdoll) cleanragdoll(d);
- }
break;
- }
case N_CDIS:
clientdisconnected(getint(p));