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

@@ -129,8 +129,7 @@ namespace Shared {
#endif
}
void MapPreview::glestChangeHeight(int x, int y, int height, int radius) {
void MapPreview::changeHeight(int x, int y, int height, int radius) {
for (int i = x - radius + 1; i < x + radius; i++) {
for (int j = y - radius + 1; j < y + radius; j++) {
if (inside(i, j)) {