Updated selection mechanism

This commit is contained in:
mathusummut
2019-02-01 04:31:10 +01:00
parent fa0ae69220
commit 66383eaa54
29 changed files with 184 additions and 260 deletions

View File

@@ -1274,7 +1274,7 @@ wxT("Help")).ShowModal();
switch (enabledGroup) {
case ctHeight:
program->glestChangeMapHeight(x, y, height, radius);
program->changeMapHeight(x, y, height, radius);
break;
case ctSurface:
program->changeMapSurface(x, y, surface, radius);

View File

@@ -210,8 +210,8 @@ namespace MapEditor {
}
}
void Program::glestChangeMapHeight(int x, int y, int Height, int radius) {
if (map) map->glestChangeHeight((x - ofsetX) / cellSize, (y + ofsetY) / cellSize, Height, radius);
void Program::changeMapHeight(int x, int y, int Height, int radius) {
if (map) map->changeHeight((x - ofsetX) / cellSize, (y + ofsetY) / cellSize, Height, radius);
}
void Program::pirateChangeMapHeight(int x, int y, int Height, int radius) {

View File

@@ -133,7 +133,7 @@ namespace MapEditor {
}
//map cell change
void glestChangeMapHeight(int x, int y, int Height, int radius);
void changeMapHeight(int x, int y, int Height, int radius);
void pirateChangeMapHeight(int x, int y, int Height, int radius);
void changeMapSurface(int x, int y, int surface, int radius);
void changeMapObject(int x, int y, int object, int radius);