diff --git a/C++ProjectTemplate b/C++ProjectTemplate index 4d7ab21..b4c0fb0 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index b143f8e..17fcf90 100644 --- a/main.cpp +++ b/main.cpp @@ -378,7 +378,15 @@ public: GAME_STATE=GameState::OBJ_SELECT; } if (EDITING_LAYER==layer::OBJECT&&GetMouse(0).bPressed) { - OBJECTS.push_back(CreateObject(SELECTED_OBJ_ID,GetMousePos()+cameraPos)); + OBJECTS.push_back(CreateObject(SELECTED_OBJ_ID,HIGHLIGHTED_TILE*32)); + } else + if (EDITING_LAYER==layer::OBJECT&&GetMouse(1).bReleased) { + for (int i=0;ipos==HIGHLIGHTED_TILE*32) { + delete OBJECTS[i]; + OBJECTS.erase(OBJECTS.begin()+i--); + } + } } }break; case GameState::OBJ_SELECT:{