mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
more fixes and formatting
This commit is contained in:
@@ -168,6 +168,22 @@
|
||||
continue
|
||||
var/atom/movable/thing = i
|
||||
thing.Crossed(src)
|
||||
|
||||
if(!loc || !newloc) return 0
|
||||
|
||||
if(!loc || (loc == oldloc && oldloc != newloc))
|
||||
last_move = 0
|
||||
return
|
||||
|
||||
if(.)
|
||||
Moved(oldloc, direct)
|
||||
|
||||
last_move = direct
|
||||
src.move_speed = world.time - src.l_move_time
|
||||
src.l_move_time = world.time
|
||||
|
||||
if(. && buckled_mob && !handle_buckled_mob_movement(loc, direct)) //movement failed due to buckled mob
|
||||
. = 0
|
||||
|
||||
// Called after a successful Move(). By this point, we've already moved
|
||||
/atom/movable/proc/Moved(atom/OldLoc, Dir)
|
||||
|
||||
@@ -402,7 +402,7 @@
|
||||
to_chat(src, "<span class='warning'>Unable to access asset cache browser, if you are using a custom skin file, please allow DS to download the updated version, if you are not, then make a bug report. This is not a critical issue but can cause issues with resource downloading, as it is impossible to know when extra resources arrived to you.</span>")
|
||||
|
||||
if(SSinput.initialized)
|
||||
spawn(30) // without this input won't work on first connect
|
||||
spawn(50) // without this input won't work on first connect
|
||||
set_macros()
|
||||
|
||||
//This is down here because of the browse() calls in tooltip/New()
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
if(!user.keys_held["Ctrl"])
|
||||
var/movement_dir = NONE
|
||||
var/list/movement = SSinput.movement_keys
|
||||
if (user.prefs.toggles & AZERTY) movement = SSinput.alt_movement_keys
|
||||
if(user.prefs.toggles & AZERTY)
|
||||
movement = SSinput.alt_movement_keys
|
||||
for(var/_key in user.keys_held)
|
||||
movement_dir = movement_dir | movement[_key]
|
||||
if(user.next_move_dir_add)
|
||||
|
||||
@@ -179,6 +179,9 @@
|
||||
if(!mob || !mob.loc)
|
||||
return 0
|
||||
|
||||
if(!n || !direct) // why did we never check this before?
|
||||
return FALSE
|
||||
|
||||
if(mob.notransform)
|
||||
return 0 //This is sota the goto stop mobs from moving var
|
||||
|
||||
|
||||
Reference in New Issue
Block a user