OpenDungeons/OpenDungeons — pull request #142 by hwoarangmy (2014-09-12 18:35:05+00:00)
Title: Fixed editor launch.

Fixed editor tile selector
Rooms and Traps layout is now shared between Editor and game.
Mouse handling copied/pasted from GameMap to have the same logic. For example, creatures can be picked up like ingame.
fixes #17
By default or when right mouse button is pressed, nothing is selected in editor mode. To add room/trap/tiles, you have to clic on the corresponding icon.
Added server messages for editor. In editor mode, if a room/trap is built on dirt tiles, gold tile or rock, they are claimed/digged automatically.
Rooms/traps cannot be built on tiles where there are already creatures/traps/rooms
Added a parameter to Server for him to know if we started editor or game mode. In editor mode, creatures have no turn :)
A map can be saved only if no creature is in the hand
Within the editor, creatures can be dropped everywhere they can walk (dirt, claimed - same color or not, water, lava).
Fixed a bug when reading map info (space is considered as a separator char by stringstream)