Fix parallax (#2983)

changes:

Parallax now actually moves properly on Move().
Parallax movement can now be toggled as a preference.
Merged all movable/Move() overrides for performance reasons.
This commit is contained in:
Lohikar
2017-07-09 19:35:02 +03:00
committed by skull132
parent 6d69abbd47
commit 2ee49b1b9e
10 changed files with 47 additions and 23 deletions
+3
View File
@@ -111,6 +111,9 @@
var/client/C = mymob.client
if(!SSparallax.parallax_initialized)
return
if (C.prefs.parallax_togs & PARALLAX_IS_STATIC)
return
//ACTUALLY MOVING THE PARALLAX
var/turf/posobj = C.eye ? C.eye:loc : C.mob:loc