mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 11:19:48 +02:00
Updated selection mechanism
This commit is contained in:
@@ -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);
|
||||
|
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user