Closed ectrospeedy closed 10 years ago
or perhaps it should always say 'planet2d' instead of 'planetd'?
if( dbMapRetrievePlanet( plnlist[a], &planet2d ) < 0 )
continue;
c = planetd.building[CMD_BUILDING_SOLAR] * fa;
if( c > planetd.building[CMD_BUILDING_SOLAR] )
c = planetd.building[CMD_BUILDING_SOLAR];
planetd.building[CMD_BUILDING_SOLAR] -= c;
newd[14] += c;
c = planetd.building[CMD_BUILDING_FISSION] * fb;
if( c > planetd.building[CMD_BUILDING_FISSION] )
c = planetd.building[CMD_BUILDING_FISSION];
planetd.building[CMD_BUILDING_FISSION] -= c;
newd[15] += c;
dbMapSetPlanet( plnlist[a], &planet2d );
Yep, it should be editing planet2d...
if( dbMapRetrievePlanet( plnlist[a], &planet2d ) < 0 )
continue;
c = planet2d.building[CMD_BUILDING_SOLAR] * fa;
if( c > plane2td.building[CMD_BUILDING_SOLAR] )
c = planet2d.building[CMD_BUILDING_SOLAR];
planet2d.building[CMD_BUILDING_SOLAR] -= c;
newd[14] += c;
c = planet2d.building[CMD_BUILDING_FISSION] * fb;
if( c > planet2d.building[CMD_BUILDING_FISSION] )
c = planet2d.building[CMD_BUILDING_FISSION];
planet2d.building[CMD_BUILDING_FISSION] -= c;
newd[15] += c;
dbMapSetPlanet( plnlist[a], &planet2d );
it razes no fissions and solars, as it says it does so it must have something to do with line 1501 and 1506 in specops