Fix a bug broken in r1734 (doesn't make any sense to check a negative value for building type)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7510 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b0605e8518
commit
e2a15031b4
|
@ -4390,9 +4390,7 @@ BOOL validLocation(BASE_STATS *psStats, UDWORD x, UDWORD y, UDWORD player,
|
|||
psTile = mapTile(i,j);
|
||||
if (TileIsOccupied(psTile))
|
||||
{
|
||||
if (TileHasWall(psTile)
|
||||
&& (psBuilding->type == REF_DEFENSE ||
|
||||
- psBuilding->type == REF_WALL))
|
||||
if (TileHasWall(psTile) && (psBuilding->type == REF_DEFENSE || psBuilding->type == REF_WALL))
|
||||
{
|
||||
psStruct = getTileStructure(i,j);
|
||||
if (psStruct != NULL &&
|
||||
|
|
Loading…
Reference in New Issue