Stop trucks from ever building on burning oil resources (fixes bug #181)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7339 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b6460140df
commit
fedd43dbe4
|
@ -1068,6 +1068,12 @@ BOOL droidStartBuild(DROID *psDroid)
|
|||
intBuildFinished(psDroid);
|
||||
return false;
|
||||
}
|
||||
// Can't build on burning oil derricks.
|
||||
if (psStructStat->type == REF_RESOURCE_EXTRACTOR && fireOnLocation(psDroid->orderX,psDroid->orderY))
|
||||
{
|
||||
intBuildFinished(psDroid);
|
||||
return false;
|
||||
}
|
||||
//ok to build
|
||||
psStruct = buildStructure(psStructStat, psDroid->orderX,psDroid->orderY, psDroid->player,false);
|
||||
if (!psStruct)
|
||||
|
|
Loading…
Reference in New Issue