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-861f7616d084
master
Buginator 2009-05-23 03:40:46 +00:00 committed by Git SVN Gateway
parent b0605e8518
commit e2a15031b4
1 changed files with 1 additions and 3 deletions

View File

@ -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 &&