Make automatic_rotate relative, allow setting rotation (#8468)
authorANAND <ClobberXD@gmail.com>
Sat, 16 May 2020 19:42:31 +0000 (01:12 +0530)
committerGitHub <noreply@github.com>
Sat, 16 May 2020 19:42:31 +0000 (21:42 +0200)
commitc1ce4be756e2554051a27f244303377c0a7d69a6
treee55eb5c2a2cc85122de0d1a1a5571d39cb550b61
parentab745685c79cd7b0fa8f74b96e190c528d620608
Make automatic_rotate relative, allow setting rotation (#8468)

automatic_rotate does not make sense if it is absolute. Make it relative.

To avoid bouncing, set_rotation did not update the client when automatic_rotate was set. That's no longer necessary because the new spinning method applies the rotation on top of the current one, and the updates are necessary for set_rotation to actually transform the object.

Co-authored-by: ANAND <ClobberXD@gmail.com>
Co-authored-by: Pedro Gimeno <pgimeno@users.noreply.notabug.org>
doc/lua_api.txt
src/client/content_cao.cpp