Made faster-swimming's vertical swimming fast

This commit is contained in:
MysterD 2022-01-29 01:15:59 -08:00
parent 459aadf000
commit 38c16e9286
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ function mario_before_phys_step(m)
-- faster swimming -- faster swimming
if (m.action & ACT_FLAG_SWIMMING) ~= 0 then if (m.action & ACT_FLAG_SWIMMING) ~= 0 then
hScale = hScale * 2 hScale = hScale * 2.0
if m.action ~= ACT_WATER_PLUNGE then
vScale = vScale * 2.0
end
end end
m.vel.x = m.vel.x * hScale m.vel.x = m.vel.x * hScale