* Updates the neighborFacility's build time. This is for internal use only (reCalcQueuedBuildings()). * @param facility Pointer to a base facility. * @param neighbor Pointer to a neighboring base facility. */
| 290 | * @param neighbor Pointer to a neighboring base facility. |
| 291 | */ |
| 292 | void BaseView::updateNeighborFacilityBuildTime(BaseFacility* facility, BaseFacility* neighbor) |
| 293 | { |
| 294 | if (0 != facility && 0 != neighbor |
| 295 | && neighbor->getBuildTime() > neighbor->getRules()->getBuildTime() |
| 296 | && facility->getBuildTime() + neighbor->getRules()->getBuildTime() < neighbor->getBuildTime()) |
| 297 | neighbor->setBuildTime(facility->getBuildTime() + neighbor->getRules()->getBuildTime()); |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Keeps the animation timers running. |
nothing calls this directly
no test coverage detected