CleverRaven/Cataclysm-DDA — pull request #5315 by BevapDin (2013-12-31 20:15:48+00:00)
Title: Rotate vehicles in map::rotate

Move vehicles to the correct submap, update their submap coordinates
rotate their position coordinates (posx, posy)
set face direction
recalculate the mount coordinates

fixes #4873 (I hope, looks good with the debug menu - cars in parking lots rotate correctly)

Also that whole function (`map::rotate`) looks needlessly complicated and parts of the function seem to assume that my_MAPSIZE is always 2, that this is a tinymap, while other parts use my_MAPSIZE explicitly.
And the rotation of coordinates (tiles, submap) are repeated again and again.