mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-26 07:18:47 -04:00
Misc fixes (#2830)
* Replace DANPCF_C_HACK with a better fakematch * d_a_obj_item OK * Fix ninja diff * Misc debug/nonmatching fixes * Fix ninja diff for PAL * Fix bad PAL split
This commit is contained in:
+6
-3
@@ -1232,12 +1232,13 @@ void dMap_c::_move(f32 i_centerX, f32 i_centerZ, int i_roomNo, f32 param_3) {
|
||||
break;
|
||||
case 2:
|
||||
switch (field_0x8f) {
|
||||
case 2:
|
||||
case 2: {
|
||||
f32 temp_f31 = (f32)field_0x90 / 5.0f;
|
||||
setMapPaletteColorAlphaPer(0x2F, 0x32, temp_f31);
|
||||
setMapPaletteColorAlphaPer(0x21, 0x2B, temp_f31);
|
||||
break;
|
||||
case 3:
|
||||
}
|
||||
case 3: {
|
||||
calcMapCenterXZ(field_0x88, &mCenterX, &mCenterZ);
|
||||
f32 sp24, sp20;
|
||||
calcMapCenterXZ(field_0x84, &sp24, &sp20);
|
||||
@@ -1268,11 +1269,13 @@ void dMap_c::_move(f32 i_centerX, f32 i_centerZ, int i_roomNo, f32 param_3) {
|
||||
mCenterX += sp14;
|
||||
mCenterZ -= sp10;
|
||||
break;
|
||||
case 4:
|
||||
}
|
||||
case 4: {
|
||||
f32 temp_f31_3 = 1.0f - ((f32)field_0x90 / 5.0f);
|
||||
setMapPaletteColorAlphaPer(0x2F, 0x32, temp_f31_3);
|
||||
setMapPaletteColorAlphaPer(0x21, 0x2B, temp_f31_3);
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
copyPalette();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user