Fix formatting inconsistencies in config files (#303)
Fix formatting inconsistencies in config files
This commit is contained in:
1 parent
483b72e7da
commit
730f020b6d
17 files changed
+172
-190
No files matched your search
@@ -63,30 +63,14 @@ s32 check_fall_damage(struct MarioState *m, u32 hardFallAction) {
|
||||
#ifdef NO_FALL_DAMAGE
|
||||
return FALSE;
|
||||
#endif
|
||||
f32 fallHeight;
|
||||
f32 damageHeight;
|
||||
|
||||
fallHeight = m->peakHeight - m->pos[1];
|
||||
f32 fallHeight = m->peakHeight - m->pos[1];
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#if defined(__clang__)
|
||||
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
#endif
|
||||
|
||||
//! Never true
|
||||
if (m->actionState == ACT_GROUND_POUND) {
|
||||
damageHeight = 600.0f;
|
||||
} else {
|
||||
damageHeight = 1150.0f;
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
f32 damageHeight = FALL_DAMAGE_HEIGHT_SMALL;
|
||||
|
||||
if (m->action != ACT_TWIRLING && m->floor->type != SURFACE_BURNING) {
|
||||
if (m->vel[1] < -55.0f) {
|
||||
if (fallHeight > 3000.0f) {
|
||||
if (fallHeight > FALL_DAMAGE_HEIGHT_LARGE) {
|
||||
m->hurtCounter += (m->flags & MARIO_CAP_ON_HEAD) ? 16 : 24;
|
||||
#if ENABLE_RUMBLE
|
||||
queue_rumble_data(5, 80);
|
||||
|
||||
Reference in new issue
Block a user