mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-20 23:51:19 -04:00
Improve compiler compatibility (#743)
* fix returns * use standard C headers * struct/class mismatch * explicit this in template * switch variable scope * C standard compliance * & l-value
This commit is contained in:
+4
-2
@@ -624,7 +624,7 @@ bool dMesg_tSequenceProcessor::do_tag(u32 param_1, const void* param_2, u32 para
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0x10000:
|
||||
case 0x10000: {
|
||||
u16 r24 = param_1 & 0xFFFF;
|
||||
s8 tmp = dComIfGp_getReverb(dComIfGp_roomControl_getStayNo());
|
||||
if (r24 == 8) {
|
||||
@@ -634,6 +634,7 @@ bool dMesg_tSequenceProcessor::do_tag(u32 param_1, const void* param_2, u32 para
|
||||
}
|
||||
r29 = true;
|
||||
break;
|
||||
}
|
||||
case 0x20000:
|
||||
dComIfGp_setMesgCameraTagInfo(u16(param_1));
|
||||
r29 = true;
|
||||
@@ -1552,7 +1553,8 @@ void dMesg_screenDataItem_c::createScreen() {
|
||||
J2DPane* pane = field_0x1b4.pane;
|
||||
f32 y = (field_0x1b4.mSize.y * 0.5f + pane->mScreenBounds.i.y - 240.0f) - 10.0f;
|
||||
f32 x = (field_0x1b4.mSize.x * 0.5f + pane->mScreenBounds.i.x - 320.0f) + 10.0f;
|
||||
field_0x3e4 = dComIfGp_particle_set2Dfore(0x2e1, &cXyz(x, y, 0.0f));
|
||||
cXyz pos(x, y, 0.0f);
|
||||
field_0x3e4 = dComIfGp_particle_set2Dfore(0x2e1, &pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user