Fix wrong variable used in animstate.
Add playerspawned signal for both client and server.
Add sanity check in ingame map editor saving code.