From 3c89e922fb1755b0c938f0e699f79766986e7a03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Mon, 10 May 2004 17:04:56 +0000 Subject: [PATCH] fixed selection of a game_object in IsObject mode SVN-Revision: 1078 --- src/leveleditor.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 37446b9a6..f258f7243 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -1479,12 +1479,19 @@ void le_checkevents() int i = 0; bool object_got_hit = false; base_type cursor_base; + if(le_current.IsTile()) + { cursor_base.x = cursor_x; cursor_base.y = cursor_y; + } + else if(le_current.IsObject()) + { + cursor_base.x = cursor_x + pos_x; + cursor_base.y = cursor_y + pos_x; + } cursor_base.width = 32; cursor_base.height = 32; - /* if there is a bad guy over there, remove it */ for(std::list::iterator it = le_world->bad_guys.begin(); it != le_world->bad_guys.end(); ++it, ++i) if(rectcollision(cursor_base,(*it)->base)) { @@ -1519,6 +1526,7 @@ void le_checkevents() } } } + le_mouse_clicked[LEFT] = false; } -- 2.11.0