Skip to content

Commit

Permalink
op order
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Dec 3, 2024
1 parent a93fa93 commit 80bdf21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/shuttle/helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@
var/list/vehicle_dimensions = vehicle.get_dimensions()
var/height = vehicle_dimensions["height"]
var/width = vehicle_dimensions["width"]
if(vehicle.dir & EAST|WEST)
if(vehicle.dir & (EAST|WEST))
height = vehicle_dimensions["width"]
width = vehicle_dimensions["height"]
var/dir_to_push = get_dir(door_turf, target_turf)
// half width/height because the vehicle loc is centered
if(door.dir & EAST|WEST)
if(door.dir & (EAST|WEST))
switch(dir_to_push)
if(NORTH, NORTHEAST, NORTHWEST)
target_turf = locate(vehicle.x, door.y + ceil(height*0.5), vehicle.z)
Expand Down

0 comments on commit 80bdf21

Please sign in to comment.