From 89df4950d4c7a5b240012959758c655dd0d1c896 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 15 Dec 2018 01:40:20 +0000 Subject: [PATCH] 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 --- source/duke3d/src/net.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/duke3d/src/net.cpp b/source/duke3d/src/net.cpp index 78a013dcd..7a6d07e9a 100644 --- a/source/duke3d/src/net.cpp +++ b/source/duke3d/src/net.cpp @@ -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;