Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9841/src
Modified Files:
leveleditor.cpp
Log Message:
fixed selection of a game_object in IsObject mode
Index: leveleditor.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/leveleditor.cpp,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- leveleditor.cpp 10 May 2004 16:44:37 -0000 1.105
+++ leveleditor.cpp 10 May 2004 17:04:56 -0000 1.106
@@ -1479,12 +1479,19 @@
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<BadGuy*>::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 @@
}
}
}
+
le_mouse_clicked[LEFT] = false;
}
|