From c7ea684c0887d0c9e6fdb9e54a598422cf8cb724 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 9 Jul 2020 03:10:08 -0700 Subject: [PATCH] Use enum names instead of raw values in createblock() calls It makes it clearer if the enum names are used instead of their values. --- desktop_version/src/Map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index b9621b77..4a1388f8 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -1792,7 +1792,7 @@ void mapclass::loadlevel(int rx, int ry) } obj.createentity(ex, usethisy + 8, 20, usethistile); - obj.createblock(5, ex - 8, usethisy + 8, 20, 16, 35); + obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35); break; } case 19: //Script Box @@ -1800,7 +1800,7 @@ void mapclass::loadlevel(int rx, int ry) { game.customscript[tempscriptbox]=ent.scriptname; } - obj.createblock(1, ex, ey, + obj.createblock(TRIGGER, ex, ey, ent.p1*8, ent.p2*8, 300+tempscriptbox, "custom_" + ent.scriptname); tempscriptbox++; break;