diff options
| author | xolatile | 2025-08-04 18:17:30 +0200 |
|---|---|---|
| committer | xolatile | 2025-08-04 18:17:30 +0200 |
| commit | a89dca11cf475e0bd1399cf5d5c5135d00495ec3 (patch) | |
| tree | 4d551a7f4193bc89a0b8560e955f4f874101b388 /src/fpsgame/client.cpp | |
| parent | 9d533fa4d82935a083ff93a09aed95baea9fbfd4 (diff) | |
| download | xolatile-badassbug-a89dca11cf475e0bd1399cf5d5c5135d00495ec3.tar.xz xolatile-badassbug-a89dca11cf475e0bd1399cf5d5c5135d00495ec3.tar.zst | |
Minor changes...
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); |
