(svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode

This commit is contained in:
smatz
2007-11-18 23:13:53 +00:00
parent be591f158e
commit 32802f863b
4 changed files with 11 additions and 7 deletions

View File

@@ -1772,7 +1772,7 @@ void MouseLoop(MouseClick click, int mousewheel)
case MC_DOUBLE_LEFT:
case MC_LEFT:
DEBUG(misc, 2, "Cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
if (_thd.place_mode != 0 &&
if (_thd.place_mode != VHM_NONE &&
/* query button and place sign button work in pause mode */
_cursor.sprite != SPR_CURSOR_QUERY &&
_cursor.sprite != SPR_CURSOR_SIGN &&
@@ -1781,7 +1781,7 @@ void MouseLoop(MouseClick click, int mousewheel)
return;
}
if (_thd.place_mode == 0) {
if (_thd.place_mode == VHM_NONE) {
HandleViewportClicked(vp, x, y);
} else {
PlaceObject();