Skip to content

Commit

Permalink
what
Browse files Browse the repository at this point in the history
  • Loading branch information
BeagleGaming1 committed Sep 16, 2023
1 parent 45de005 commit 59c3257
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/turfs/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
return FALSE

// if we are thrown, moved, dragged, or in any other way abused by code - check our diagonals
if(!mover.move_intentionally)
if(!mover.move_intentionally || fdir == NORTHEAST || fdir == NORTHWEST || fdir == SOUTHEAST || fdir == SOUTHWEST)
// Check objects in adjacent turf EAST/WEST
if(fd1 && fd1 != fdir)
T = get_step(mover, fd1)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/keybindings/bindings_atom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var/movement_dir = NONE
for(var/_key in user.keys_held)
if(user.movement_keys[_key])
movement_dir = user.movement_keys[_key]
movement_dir += user.movement_keys[_key]

if(!movement_dir)
return
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/mob_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@
mob.next_move_slowdown = 0
if((mob.flags_atom & DIRLOCK) && mob.dir != direct)
move_delay += MOVE_REDUCTION_DIRECTION_LOCKED // by Geeves
if(direct == NORTHEAST || direct == NORTHWEST || direct == SOUTHEAST || direct == SOUTHWEST)
move_delay *= sqrt(2) //Diagonal movement takes longer

mob.cur_speed = Clamp(10/(move_delay + 0.5), MIN_SPEED, MAX_SPEED)
//We are now going to move
Expand Down

0 comments on commit 59c3257

Please sign in to comment.