From 58f535d3a41efa7988d44ae565d71c84c7dbec32 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Jan 2022 23:05:22 +0100 Subject: [PATCH] - Duke: fixed gamevars not being allocated for map spawned actors. --- source/games/duke/src/spawn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/games/duke/src/spawn.cpp b/source/games/duke/src/spawn.cpp index 787a17a61..3768d9718 100644 --- a/source/games/duke/src/spawn.cpp +++ b/source/games/duke/src/spawn.cpp @@ -137,6 +137,7 @@ DDukeActor* EGS(sectortype* whatsectp, int s_x, int s_y, int s_z, int s_pn, int8 bool initspriteforspawn(DDukeActor* act, const std::initializer_list &excludes) { + SetupGameVarsForActor(act); act->attackertype = act->spr.picnum; act->timetosleep = 0; act->hitextra = -1;