Multiplayer: Clear server and client decals upon round end.
This commit is contained in:
parent
f436d17ee5
commit
e744c22f40
|
@ -454,6 +454,16 @@ CSMultiplayerRules::RestartRound(int iWipe)
|
||||||
for (entity eFind = world; (eFind = find(eFind, ::classname, "remove_me"));) {
|
for (entity eFind = world; (eFind = find(eFind, ::classname, "remove_me"));) {
|
||||||
remove(eFind);
|
remove(eFind);
|
||||||
}
|
}
|
||||||
|
for (entity eFind = world; (eFind = find(eFind, ::classname, "tempdecal"));) {
|
||||||
|
decal dec = (decal)eFind;
|
||||||
|
dec.m_strTexture = "";
|
||||||
|
dec.SendFlags = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET);
|
||||||
|
WriteByte(MSG_MULTICAST, EV_CLEARDECALS);
|
||||||
|
msg_entity = world;
|
||||||
|
multicast([0,0,0], MULTICAST_ALL);
|
||||||
|
|
||||||
// Select a random Terrorist for the bomb, if needed
|
// Select a random Terrorist for the bomb, if needed
|
||||||
if (g_cs_bombzones > 0) {
|
if (g_cs_bombzones > 0) {
|
||||||
|
|
Loading…
Reference in New Issue