mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 05:08:57 -04:00
Switch return type of _execute/_draw/_delete to be bool by default instead of BOOL
It's not completely consistent, but it seems like the majority used `bool`, and only a handful used `BOOL`. So I switched all of them to `bool` except for 13 TUs that stopped matching when changed like this.
This commit is contained in:
@@ -86,7 +86,7 @@ static cPhs__Step daObjTower_Create(void* i_this) {
|
||||
return ((daObjTower_c*)i_this)->_create();
|
||||
}
|
||||
|
||||
BOOL daObjTower_c::_delete() {
|
||||
bool daObjTower_c::_delete() {
|
||||
if (field_0x2d0 == 1) {
|
||||
dComIfG_Bgsp()->Release(mpBgW);
|
||||
}
|
||||
@@ -103,7 +103,7 @@ static BOOL daObjTower_Delete(void* i_this) {
|
||||
return ((daObjTower_c*)i_this)->_delete();
|
||||
}
|
||||
|
||||
BOOL daObjTower_c::_draw() {
|
||||
bool daObjTower_c::_draw() {
|
||||
g_env_light.settingTevStruct(TEV_TYPE_BG0, ¤t.pos, &tevStr);
|
||||
g_env_light.setLightTevColorType(mpModel, &tevStr);
|
||||
|
||||
@@ -119,7 +119,7 @@ static BOOL daObjTower_Draw(void* i_this) {
|
||||
return ((daObjTower_c*)i_this)->_draw();
|
||||
}
|
||||
|
||||
BOOL daObjTower_c::_execute() {
|
||||
bool daObjTower_c::_execute() {
|
||||
if (demoActorID != 0) {
|
||||
dDemo_actor_c* pdVar1 = dComIfGp_demo_getActor(demoActorID);
|
||||
if (pdVar1 != NULL && pdVar1->checkEnable(0x02)) {
|
||||
|
||||
Reference in New Issue
Block a user