mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-18 07:05:27 -04:00
Match daNpc_Bs1_c::CreateInit and cLib_minMaxLimit inline
This commit is contained in:
@@ -1293,10 +1293,10 @@ namespace daBomb2 {
|
||||
};
|
||||
|
||||
if(fopAcM_GetModel(this) == 0) {
|
||||
f32 frame = mBck0.getFrame();
|
||||
frame = mult[cLib_minMaxLimit<int>(mBck0.getEndFrame() - frame, 0, 9)] * 25.0f;
|
||||
int framesLeft = mBck0.getEndFrame() - mBck0.getFrame();
|
||||
f32 scale = mult[cLib_minMaxLimit<int>(framesLeft, 0, 9)] * 25.0f;
|
||||
|
||||
dComIfGd_setSimpleShadow2(¤t.pos, mAcch.GetGroundH(), frame, mAcch.m_gnd, 0, 1.0f, dDlst_shadowControl_c::getSimpleTex());
|
||||
dComIfGd_setSimpleShadow2(¤t.pos, mAcch.GetGroundH(), scale, mAcch.m_gnd, 0, 1.0f, dDlst_shadowControl_c::getSimpleTex());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user