From 60977ef4dc26bc1a19423db20136812e96089840 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 2 Nov 2020 21:00:53 +0100 Subject: [PATCH] - the spawn dispatcher is no longer used. --- source/games/duke/src/dispatch.cpp | 2 -- source/games/duke/src/premap_r.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/dispatch.cpp b/source/games/duke/src/dispatch.cpp index f1113c959..eebc1e17c 100644 --- a/source/games/duke/src/dispatch.cpp +++ b/source/games/duke/src/dispatch.cpp @@ -155,7 +155,6 @@ void SetDispatcher() respawnhitag_d, checktimetosleep_d, move_d, - spawn_d, incur_damage_d, shoot_d, @@ -204,7 +203,6 @@ void SetDispatcher() respawnhitag_r, checktimetosleep_r, move_r, - spawn_r, incur_damage_r, shoot_r, diff --git a/source/games/duke/src/premap_r.cpp b/source/games/duke/src/premap_r.cpp index c35d00339..5db3fdea7 100644 --- a/source/games/duke/src/premap_r.cpp +++ b/source/games/duke/src/premap_r.cpp @@ -670,7 +670,7 @@ void prelevel_r(int g) { if (spr->picnum == SECTOREFFECTOR && spr->lotag == 14) continue; - fi.spawn(-1, i); + spawn(nullptr, i); } } @@ -680,7 +680,7 @@ void prelevel_r(int g) if (spr->statnum < MAXSTATUS) { if (spr->picnum == SECTOREFFECTOR && spr->lotag == 14) - fi.spawn(-1, i); + spawn(nullptr, i); } if (spr->picnum == RRTILE19) deletesprite(i);