Warzone2100/warzone2100

Factory assigned to commander ignores command limits

Open

#1,600 opened on Mar 9, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (610 forks)auto 404
Buggood first issue

Repository metrics

Stars
 (3,886 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the bug Factories assigned to a commander will continue to produce units even once the command limit is reached. "Production complete. Assigned to commander" is announced, but the unit is left unassigned and the factory then produces another unit.

To Reproduce Steps to reproduce the behavior:

  1. Produce a commander, assign it to a factory
  2. Produce units from assigned factory
  3. Observe that n+1... units are produced, unassigned. Continues indefinitely if production is looped.

Expected behavior n+1 units are produced, with last unit assigned to commander but remains inactive. No further units are produced.

Your System: Kubutunu 20.04 Warzon 4.0.0 beta 1

Contributor guide