more fixes and formatting

This commit is contained in:
Couls
2019-04-27 07:08:05 -04:00
parent 7cd783c1e3
commit 4826ea13f8
4 changed files with 22 additions and 2 deletions
+16
View File
@@ -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)
+1 -1
View File
@@ -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()
+2 -1
View File
@@ -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)
+3
View File
@@ -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