CSMultiplayerRules: Remove temp items after respawning everything else to avoid phantom pickups.
This commit is contained in:
parent
0e8be2560b
commit
9893e8bc3e
|
@ -589,15 +589,6 @@ CSMultiplayerRules::RestartRound(int iWipe)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* clear the corpses/items/bombs */
|
|
||||||
for (entity eFind = world; (eFind = find(eFind, ::classname, "remove_me"));) {
|
|
||||||
if (eFind.identity) {
|
|
||||||
NSEntity e = (NSEntity)eFind;
|
|
||||||
e.Destroy();
|
|
||||||
} else {
|
|
||||||
remove(eFind);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (entity eFind = world; (eFind = find(eFind, ::classname, "tempdecal"));) {
|
for (entity eFind = world; (eFind = find(eFind, ::classname, "tempdecal"));) {
|
||||||
decal dec = (decal)eFind;
|
decal dec = (decal)eFind;
|
||||||
dec.m_strTexture = "";
|
dec.m_strTexture = "";
|
||||||
|
@ -657,6 +648,16 @@ CSMultiplayerRules::RestartRound(int iWipe)
|
||||||
caw.Respawn();
|
caw.Respawn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* clear the corpses/items/bombs */
|
||||||
|
for (entity eFind = world; (eFind = find(eFind, ::classname, "remove_me"));) {
|
||||||
|
if (eFind.identity) {
|
||||||
|
NSEntity toRemove = (NSEntity)eFind;
|
||||||
|
toRemove.Destroy();
|
||||||
|
} else {
|
||||||
|
remove(eFind);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CSBot_BuyStart();
|
CSBot_BuyStart();
|
||||||
TimerBegin(autocvar_mp_freezetime, GAME_FREEZE);
|
TimerBegin(autocvar_mp_freezetime, GAME_FREEZE);
|
||||||
Money_ResetTeamReward();
|
Money_ResetTeamReward();
|
||||||
|
|
Loading…
Reference in New Issue