From 22f73263a38925280c8f2bd43346629d7a9f7559 Mon Sep 17 00:00:00 2001 From: Doubleumc Date: Sat, 8 Jun 2024 16:54:59 -0400 Subject: [PATCH] initial --- code/modules/vehicles/multitile/multitile_movement.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/vehicles/multitile/multitile_movement.dm b/code/modules/vehicles/multitile/multitile_movement.dm index b5f3081447..b95a7bd057 100644 --- a/code/modules/vehicles/multitile/multitile_movement.dm +++ b/code/modules/vehicles/multitile/multitile_movement.dm @@ -159,7 +159,7 @@ // Crashed with something that stopped us if(!can_move) - move_momentum = Floor(move_momentum/2) + move_momentum = trunc(move_momentum/2) update_next_move() interior_crash_effect() @@ -251,10 +251,10 @@ return // Not enough momentum for anything serious - if(abs(move_momentum) <= 1) + if(abs(move_momentum) < 1) return - var/fling_distance = Ceiling(move_momentum/move_max_momentum) * 2 + var/fling_distance = Ceiling(abs(move_momentum)/move_max_momentum) * 2 var/turf/target = interior.get_middle_turf() for (var/x in 0 to fling_distance-1) @@ -272,7 +272,7 @@ if(isliving(A)) var/mob/living/M = A - shake_camera(M, 2, Ceiling(move_momentum/move_max_momentum) * 1) + shake_camera(M, 2, Ceiling(abs(move_momentum)/move_max_momentum) * 1) if(!M.buckled) M.apply_effect(1, STUN) M.apply_effect(2, WEAKEN)