diff options
Diffstat (limited to 'src/fpsgame/client.cpp')
| -rw-r--r-- | src/fpsgame/client.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/fpsgame/client.cpp b/src/fpsgame/client.cpp index 609ce93..00a0c7e 100644 --- a/src/fpsgame/client.cpp +++ b/src/fpsgame/client.cpp @@ -2,13 +2,6 @@ namespace game { - clientmode *cmode = NULL; - - void setclientmode() - { - cmode = NULL; - } - bool senditemstoserver = false, sendcrc = false; // after a map change, since server doesn't have map data int lastping = 0; @@ -898,9 +891,8 @@ namespace game } if(senditemstoserver) { - if(!m_noitems || cmode!=NULL) p.reliable(); + if(!m_noitems) p.reliable(); if(!m_noitems) entities::putitems(p); - if(cmode) cmode->senditems(p); senditemstoserver = false; } if(messages.length()) @@ -1340,8 +1332,7 @@ namespace game showscores(false); lasthit = 0; } - if(cmode) cmode->respawned(s); - ai::spawned(s); + ai::spawned(s); addmsg(N_SPAWN, "rcii", s, s->lifesequence, s->gunselect); break; } @@ -1408,7 +1399,7 @@ namespace game actor->frags = frags; if(m_teammode) setteaminfo(actor->team, tfrags); extern int hidefrags; - if(actor!=player1 && (!cmode || !cmode->hidefrags() || !hidefrags)) + if(actor!=player1 && (!hidefrags)) { defformatstring(ds, "%d", actor->frags); particle_textcopy(actor->abovehead(), ds, PART_TEXT, 2000, 0x32FF64, 4.0f, -8); |
