Removed unused vars
globalpos is stored in the EngineState