mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-19 13:24:12 -04:00
G_CM3D_F_INF
This commit is contained in:
@@ -770,7 +770,7 @@ void daShip_c::getMaxWaterY(cXyz* shipPos) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (m03F8 != C_BG_MIN_HEIGHT) {
|
||||
if (m03F8 != -G_CM3D_F_INF) {
|
||||
shipPos->y = m03F8;
|
||||
}
|
||||
else {
|
||||
@@ -831,7 +831,7 @@ f32 daShip_c::getWaterY() {
|
||||
m03F8 = mAcch.m_wtr.GetHeight();
|
||||
}
|
||||
else {
|
||||
m03F8 = C_BG_MIN_HEIGHT;
|
||||
m03F8 = -G_CM3D_F_INF;
|
||||
}
|
||||
if (daSea_ChkArea(current.pos.x, current.pos.z)) {
|
||||
waterY = daSea_calcWave(current.pos.x, current.pos.z);
|
||||
@@ -3024,7 +3024,7 @@ void daShip_c::setEffectData(float param_1, short param_2) {
|
||||
/* 000085D8-00008688 .text setRoomInfo__8daShip_cFv */
|
||||
void daShip_c::setRoomInfo() {
|
||||
int roomId;
|
||||
if (mAcch.GetGroundH() != C_BG_MIN_HEIGHT) {
|
||||
if (mAcch.GetGroundH() != -G_CM3D_F_INF) {
|
||||
roomId = dComIfG_Bgsp()->GetRoomId(mAcch.m_gnd);
|
||||
tevStr.mEnvrIdxOverride = dComIfG_Bgsp()->GetPolyColor(mAcch.m_gnd);
|
||||
m03C4 = dComIfG_Bgsp()->GetGroundCode(mAcch.m_gnd);
|
||||
@@ -3820,7 +3820,7 @@ BOOL daShip_c::execute() {
|
||||
else {
|
||||
cXyz sp108;
|
||||
int sp18;
|
||||
if (mAcch.GetGroundH() != C_BG_MIN_HEIGHT && dPath_GetPolyRoomPathVec(mAcch.m_gnd, &sp108, &sp18)) {
|
||||
if (mAcch.GetGroundH() != -G_CM3D_F_INF && dPath_GetPolyRoomPathVec(mAcch.m_gnd, &sp108, &sp18)) {
|
||||
sp108.normalizeZP();
|
||||
sp108 *= sp18 >> 1;
|
||||
cLib_addCalcPosXZ(&m1044, sp108, 0.5f, 5.0f, 1.0f);
|
||||
|
||||
Reference in New Issue
Block a user