Soldiers in stopped trainings site get exchanged

Bug #1656669 reported by Notabilis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Low
Unassigned

Bug Description

Sometimes, soldiers in a stopped (barbarian) training camp are endlessly replaced with soldiers in the warehouse. I have no real idea how to trigger this bug(?), though. In my test game I trained the soldiers in evasion and build a paused training camp equipped with helmets.

After some time* the camp starts to replace its soldiers. The trainer seems to prefer kicking out partially trained soldiers, if none are present untrained soldiers are kicked. This can be observed in the attached save game.

Observed in bzr8237[trunk].

For reference: Tino noticed this effect in a test game of the casern branch and reported it here:
https://code.launchpad.net/~widelands-dev/widelands/casern_workersqueue/+merge/309763/comments/818541

* To be exact, it happened after I saved the game. But that is most likely unrelated, since saving wasn't required to trigger the effect in the casern branch.

Revision history for this message
Notabilis (notabilis27) wrote :
GunChleoc (gunchleoc)
tags: added: economy military
Changed in widelands:
milestone: none → build20-rc1
Revision history for this message
Teppo Mäenpää (kxq) wrote :

I did not think of stopped buildings while implementing the soldier exchange -> genuine bug.

Revision history for this message
Teppo Mäenpää (kxq) wrote :

I take that back. The soldier exchange happens at program_end(), which should not be repeatedly called when the site is stopped.

Does the training site actually train soliders when this thing happens?

Revision history for this message
Notabilis (notabilis27) wrote :

No, no training is happening, but food and helmets required for training are present.

GunChleoc (gunchleoc)
Changed in widelands:
milestone: build20-rc1 → build21-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.