Genericises rotate() on objects. (#8430)

This commit is contained in:
Matt Atlas
2020-03-17 17:17:42 +01:00
committed by GitHub
parent d68a92f48b
commit 72c968eba6
24 changed files with 373 additions and 665 deletions

View File

@@ -97,7 +97,7 @@
adjust_speed(0, -get_acceleration())
/obj/effect/map/ship/proc/rotate(var/direction)
/obj/effect/map/ship/proc/rotate_ship(var/direction)
var/matrix/M = matrix()
M.Turn(dir2angle(direction))
src.transform = M //Rotate ship
@@ -113,4 +113,4 @@
if(newloc)
Move(newloc)
if(rotate)
rotate(get_heading())
rotate_ship(get_heading())