mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 21:51:17 +02:00
help and bugfix editor and start of keyboard
This commit is contained in:
@@ -379,7 +379,7 @@ void MapPreview::changeObject(int x, int y, int object, int radius) {
|
||||
for (j = y - radius + 1; j < y + radius; j++) {
|
||||
if (inside(i, j)) {
|
||||
dist = get_dist(i - x, j - y);
|
||||
if (radius >= dist) {
|
||||
if (radius > dist) { // was >=
|
||||
cells[i][j].object = object;
|
||||
cells[i][j].resource = 0;
|
||||
}
|
||||
@@ -401,7 +401,7 @@ void MapPreview::changeResource(int x, int y, int resource, int radius) {
|
||||
for (j = y - radius + 1; j < y + radius; j++) {
|
||||
if (inside(i, j)) {
|
||||
dist = get_dist(i - x, j - y);
|
||||
if (radius >= dist) {
|
||||
if (radius > dist) { // was >=
|
||||
cells[i][j].resource = resource;
|
||||
cells[i][j].object = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user