From 02ace10df9c87c5aa41b81a6a0a6f64dc77ff8e9 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Sun, 20 Nov 2022 00:13:03 -0400 Subject: [PATCH] options to spawn entity 21, and no activity zone --- desktop_version/src/Map.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index 8d5881d4..a7649221 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -1917,8 +1917,11 @@ void mapclass::loadlevel(int rx, int ry) usethisy -= 8; } - obj.createentity(ex, usethisy + 8, 20, usethistile); - obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35); + obj.createentity(ex, usethisy + 8, 20 + SDL_clamp(ent.p2, 0, 1), usethistile); + if (obj.customscript != "") + { + obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35); + } break; } case 19: //Script Box