refactor 'dir = ' into 'set_dir()'

This should have little/no gameplay effect right now, just paving the
 way for directional lights.
Replaced handle_rotation() on buckly things with this.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
Mloc-Argent
2014-11-27 21:33:55 +00:00
committed by Mloc
parent a1a66870ca
commit 117ca6a135
143 changed files with 480 additions and 480 deletions

View File

@@ -48,7 +48,7 @@
//Lets not spam it.
if(lock_time > world.time - 2) return
user.dir = get_cardinal_dir(src, A)
user.set_dir(get_cardinal_dir(src, A))
if(isliving(A) && !(A in target))
Aim(A) //Clicked a mob, aim at them
return 1
@@ -103,7 +103,7 @@
else
click_empty(M)
usr.dir = get_cardinal_dir(src, T)
usr.set_dir(get_cardinal_dir(src, T))
if (!firerate) // If firerate is set to lower aim after one shot, untarget the target
T.NotTargeted(src)