This should fix the too many sprites spawned issue in single player

git-svn-id: https://svn.eduke32.com/eduke32@7288 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-12-15 01:40:20 +00:00
parent 9a23ea148e
commit 89df4950d4

View file

@ -4900,6 +4900,13 @@ void Net_DeleteSprite(int32_t spritenum)
// [75] for most cases, only the server deletes sprites, clients just set their sprites invisible and to
// the null picnum so no CON gets executed
if ((!g_netServer) && (!g_netClient))
{
deletesprite(spritenum);
return;
}
if (g_netClient)
{
sprite[spritenum].cstat = 32768;