#1913: Show player postions in map preview for maps without buildings -------------------------+-------------------------------------------------- Reporter: cybersphinx | Owner: Type: patch | Status: new Priority: major | Milestone: unspecified Component: other | Version: unspecified Keywords: | Operating_system: All/Non-Specific Blockedby: | Blocking: -------------------------+-------------------------------------------------- The current map preview uses structures (HQ) to determine the player position, so it fails on maps where no HQs are placed.
This patch changes it so that when player 0 doesn't have a position set we use the average x and y values of a player's units to show its starting position. This assumes that when player 0 has no HQ, the others don't have one as well, but even if this is not true, it should not make a big difference in the position. -- Ticket URL: <http://developer.wz2100.net/ticket/1913> Warzone 2100 Trac <http://developer.wz2100.net/> The Warzone 2100 Project _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev