g_mcoreCount seem to be signed integers

This commit is contained in:
Anonymous Maarten 2024-01-06 12:48:26 +01:00
parent 6b10dd844f
commit 33bfba825b
3 changed files with 12 additions and 10 deletions

View File

@ -1,14 +1,16 @@
#include "define.h" #include "define.h"
// GLOBAL: LEGO1 0x1010141c // GLOBAL: LEGO1 0x1010141c
MxU32 g_mxcoreCount[101] = {0, -6643, -5643, -5058, -4643, -4321, -4058, -3836, -3643, -3473, -3321, -3184, -3058, 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, -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, -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, -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, -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, -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, -358, -340, -321, -304, -286, -268, -251, -234, -217, -200, -184, -168, -152,
-136, -120, -104, -89, -74, -58, -43, -29, -14, 0}; -136, -120, -104, -89, -74, -58, -43, -29, -14, 0
};
// GLOBAL: LEGO1 0x10101eac // GLOBAL: LEGO1 0x10101eac
const char* g_parseExtraTokens = ":;"; const char* g_parseExtraTokens = ":;";

View File

@ -3,7 +3,7 @@
#include "mxtypes.h" #include "mxtypes.h"
extern MxU32 g_mxcoreCount[101]; extern MxS32 g_mxcoreCount[101];
extern const char* g_parseExtraTokens; extern const char* g_parseExtraTokens;
extern const char* g_strWORLD; extern const char* g_strWORLD;
extern const char* g_strSOUND; extern const char* g_strSOUND;

View File

@ -11,7 +11,7 @@ MxResult MxCore::Tickle()
// FUNCTION: LEGO1 0x100ae1a0 // FUNCTION: LEGO1 0x100ae1a0
MxCore::MxCore() MxCore::MxCore()
{ {
m_id = g_mxcoreCount[0]; m_id = (MxU32)g_mxcoreCount[0];
g_mxcoreCount[0]++; g_mxcoreCount[0]++;
} }