fixes the crash on M-S-space I was experiencing (checking order was wrong)

This commit is contained in:
Sander van Dijk 2006-04-11 20:33:09 +00:00
parent 8fd81a6107
commit 325bd1be5e
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ place_client(Area *a, Client *c)
for(y = 0; y < my; y++)
for(x = 0; x < mx; x++) {
if(field[y*mx + x]) {
for(i = x; field[y*mx + i] && (i < mx); i++);
for(j = y; field[j*mx + x] && (j < my); j++);
for(i = x; (i < mx) && field[y*mx + i]; i++);
for(j = y; (j < my) && field[j*mx + x]; j++);
if((i - x) * (j - y) > (p2.x - p1.x) * (p2.y - p1.y)) {
p1.x = x;
p1.y = y;