ref: 90f29377fea8c34ec8b58e5198be322440d564ef
parent: 05f382961dccc2979d3f7c675a6603d3043aa31f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jul 23 11:19:17 EDT 2019
Apply some surface ID constants
--- a/src/MiniMap.cpp
+++ b/src/MiniMap.cpp
@@ -35,7 +35,7 @@
// Yup. This really is an if/else chain.
// No switch here.
if (a == 0)
- Surface2Surface(x, line, &rcLevel[0], 9, 26);
+ Surface2Surface(x, line, &rcLevel[0], SURFACE_ID_MAP, SURFACE_ID_TEXT_BOX);
else if (a == 68 ||
a == 1 ||
a == 64 ||
@@ -57,7 +57,7 @@
a == 161 ||
a == 162 ||
a == 163)
- Surface2Surface(x, line, &rcLevel[1], 9, 26);
+ Surface2Surface(x, line, &rcLevel[1], SURFACE_ID_MAP, SURFACE_ID_TEXT_BOX);
else if (a == 67 ||
a == 99 ||
a == 80 ||
@@ -69,9 +69,9 @@
a == 115 ||
a == 116 ||
a == 119)
- Surface2Surface(x, line, &rcLevel[2], 9, 26);
+ Surface2Surface(x, line, &rcLevel[2], SURFACE_ID_MAP, SURFACE_ID_TEXT_BOX);
else
- Surface2Surface(x, line, &rcLevel[3], 9, 26);
+ Surface2Surface(x, line, &rcLevel[3], SURFACE_ID_MAP, SURFACE_ID_TEXT_BOX);
}
}