mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
- bugfix for latest harvest updates
This commit is contained in:
@@ -1009,7 +1009,7 @@ void UnitUpdater::updateHarvest(Unit *unit, int frameIndex) {
|
||||
//if not working
|
||||
if(unit->getLoadCount() == 0 ||
|
||||
(forceReturnToStore == false && unit->getLoadType() != NULL &&
|
||||
harvestResource != NULL &&
|
||||
harvestResource != NULL && (unit->getLoadCount() < hct->getMaxLoad()) &&
|
||||
harvestResource->getType() != NULL && unit->getLoadType() == harvestResource->getType())) {
|
||||
//if not loaded go for resources
|
||||
SurfaceCell *sc = map->getSurfaceCell(Map::toSurfCoords(command->getPos()));
|
||||
|
Reference in New Issue
Block a user