diff --git a/LEGO1/define.cpp b/LEGO1/define.cpp index acd811a8..df34b3a2 100644 --- a/LEGO1/define.cpp +++ b/LEGO1/define.cpp @@ -1,14 +1,16 @@ #include "define.h" // GLOBAL: LEGO1 0x1010141c -MxU32 g_mxcoreCount[101] = {0, -6643, -5643, -5058, -4643, -4321, -4058, -3836, -3643, -3473, -3321, -3184, -3058, - -2943, -2836, -2736, -2643, -2556, -2473, -2395, -2321, -2251, -2184, -2120, -2058, -2000, - -1943, -1888, -1836, -1785, -1736, -1689, -1643, -1599, -1556, -1514, -1473, -1434, -1395, - -1358, -1321, -1286, -1251, -1217, -1184, -1152, -1120, -1089, -1058, -1029, -1000, -971, - -943, -915, -888, -862, -836, -810, -785, -761, -736, -713, -689, -666, -643, - -621, -599, -577, -556, -535, -514, -494, -473, -454, -434, -415, -395, -377, - -358, -340, -321, -304, -286, -268, -251, -234, -217, -200, -184, -168, -152, - -136, -120, -104, -89, -74, -58, -43, -29, -14, 0}; +MxS32 g_mxcoreCount[101] = { + 0, -6643, -5643, -5058, -4643, -4321, -4058, -3836, -3643, -3473, -3321, -3184, -3058, + -2943, -2836, -2736, -2643, -2556, -2473, -2395, -2321, -2251, -2184, -2120, -2058, -2000, + -1943, -1888, -1836, -1785, -1736, -1689, -1643, -1599, -1556, -1514, -1473, -1434, -1395, + -1358, -1321, -1286, -1251, -1217, -1184, -1152, -1120, -1089, -1058, -1029, -1000, -971, + -943, -915, -888, -862, -836, -810, -785, -761, -736, -713, -689, -666, -643, + -621, -599, -577, -556, -535, -514, -494, -473, -454, -434, -415, -395, -377, + -358, -340, -321, -304, -286, -268, -251, -234, -217, -200, -184, -168, -152, + -136, -120, -104, -89, -74, -58, -43, -29, -14, 0 +}; // GLOBAL: LEGO1 0x10101eac const char* g_parseExtraTokens = ":;"; diff --git a/LEGO1/define.h b/LEGO1/define.h index 45a536a9..d45d02c3 100644 --- a/LEGO1/define.h +++ b/LEGO1/define.h @@ -3,7 +3,7 @@ #include "mxtypes.h" -extern MxU32 g_mxcoreCount[101]; +extern MxS32 g_mxcoreCount[101]; extern const char* g_parseExtraTokens; extern const char* g_strWORLD; extern const char* g_strSOUND; diff --git a/LEGO1/mxcore.cpp b/LEGO1/mxcore.cpp index 18c37597..18240031 100644 --- a/LEGO1/mxcore.cpp +++ b/LEGO1/mxcore.cpp @@ -11,7 +11,7 @@ MxResult MxCore::Tickle() // FUNCTION: LEGO1 0x100ae1a0 MxCore::MxCore() { - m_id = g_mxcoreCount[0]; + m_id = (MxU32)g_mxcoreCount[0]; g_mxcoreCount[0]++; }