Decompile square_init
This commit is contained in:
parent
108a20ef27
commit
dea8c98399
16
src/map.cc
16
src/map.cc
|
@ -57,6 +57,7 @@ static int mapLocalVariablesInit(int count);
|
||||||
static void mapLocalVariablesFree();
|
static void mapLocalVariablesFree();
|
||||||
static int mapLocalVariablesLoad(File* stream);
|
static int mapLocalVariablesLoad(File* stream);
|
||||||
static void _map_place_dude_and_mouse();
|
static void _map_place_dude_and_mouse();
|
||||||
|
static void square_init();
|
||||||
static void _square_reset();
|
static void _square_reset();
|
||||||
static int _square_load(File* stream, int a2);
|
static int _square_load(File* stream, int a2);
|
||||||
static int mapHeaderWrite(MapHeader* ptr, File* stream);
|
static int mapHeaderWrite(MapHeader* ptr, File* stream);
|
||||||
|
@ -165,9 +166,8 @@ int isoInit()
|
||||||
tileScrollLimitingDisable();
|
tileScrollLimitingDisable();
|
||||||
tileScrollBlockingDisable();
|
tileScrollBlockingDisable();
|
||||||
|
|
||||||
for (int elevation = 0; elevation < ELEVATION_COUNT; elevation++) {
|
// NOTE: Uninline.
|
||||||
_square[elevation] = &(_square_data[elevation]);
|
square_init();
|
||||||
}
|
|
||||||
|
|
||||||
gIsoWindow = windowCreate(0, 0, screenGetWidth(), screenGetVisibleHeight(), 256, 10);
|
gIsoWindow = windowCreate(0, 0, screenGetWidth(), screenGetVisibleHeight(), 256, 10);
|
||||||
if (gIsoWindow == -1) {
|
if (gIsoWindow == -1) {
|
||||||
|
@ -1605,6 +1605,16 @@ static void _map_place_dude_and_mouse()
|
||||||
gameMouseObjectsShow();
|
gameMouseObjectsShow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE: Inlined.
|
||||||
|
//
|
||||||
|
// 0x4841F0
|
||||||
|
static void square_init()
|
||||||
|
{
|
||||||
|
for (int elevation = 0; elevation < ELEVATION_COUNT; elevation++) {
|
||||||
|
_square[elevation] = &(_square_data[elevation]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 0x484210
|
// 0x484210
|
||||||
static void _square_reset()
|
static void _square_reset()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue