mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 21:18:23 -04:00
player_crawl and player_hammer 100%, misc player cleanup
This commit is contained in:
@@ -15,16 +15,14 @@ int daPy_npc_c::check_initialRoom() {
|
||||
mAcch.CrrPos(*dComIfG_Bgsp());
|
||||
if (mAcch.GetGroundH() == C_BG_MIN_HEIGHT || dComIfG_Bgsp()->GetGroundCode(mAcch.m_gnd) == 4) {
|
||||
return 0;
|
||||
} else {
|
||||
int roomNo = dComIfG_Bgsp()->GetRoomId(mAcch.m_gnd);
|
||||
if (roomNo < 0 || !dComIfGp_roomControl_checkStatusFlag(roomNo, 0x10)) {
|
||||
return 0;
|
||||
} else {
|
||||
fopAcM_SetHomeRoomNo(this, roomNo);
|
||||
fopAcM_SetRoomNo(this, roomNo);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
int roomNo = dComIfG_Bgsp()->GetRoomId(mAcch.m_gnd);
|
||||
if (roomNo < 0 || !dComIfGp_roomControl_checkStatusFlag(roomNo, 0x10)) {
|
||||
return 0;
|
||||
}
|
||||
fopAcM_SetHomeRoomNo(this, roomNo);
|
||||
fopAcM_SetRoomNo(this, roomNo);
|
||||
return -1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user