Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2340 closed defect (fixed)

[PATCH] Units loose orders after town bell (alert)

Reported by: Michael Owned by: Michael
Priority: Should Have Milestone: Alpha 16
Component: UI & Simulation Keywords: alert bell patch
Cc: Patch:

Description (last modified by Michael)

In a special case units lose their orders after the bell was deactivated:

Steps to reproduce:

  • give citizens a job (f.e. get some food)
  • ring the TWO levels of the alert fast one after each other
  • Stop the alert before the citizens reach the shelter

--> They will go to the RallyPoint

Attachments (2)

AlertRaiser.js.patch (839 bytes ) - added by Michael 10 years ago.
Checks, if a unit is already on its way to the garrison and if, don't send it again.
townbellfix.patch (749 bytes ) - added by Itms 10 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by Michael, 10 years ago

Description: modified (diff)

comment:2 by Michael, 10 years ago

Keywords: bell review patch added
Summary: Units loose orders after town bell (alert)[PATCH] Units loose orders after town bell (alert)

by Michael, 10 years ago

Attachment: AlertRaiser.js.patch added

Checks, if a unit is already on its way to the garrison and if, don't send it again.

comment:3 by Itms, 10 years ago

I handled the case in a previous version of the bell, I forgot it there.

Anyway, I think it would be clearer this way (see attached patch). Thanks for finding the issue !

by Itms, 10 years ago

Attachment: townbellfix.patch added

in reply to:  3 ; comment:4 by Michael, 10 years ago

Replying to Itms:

I handled the case in a previous version of the bell, I forgot it there.

Anyway, I think it would be clearer this way (see attached patch). Thanks for finding the issue !

Yes, looks better. I did not found this function. :)

in reply to:  4 comment:5 by Michael, 10 years ago

There's another problem:

If you produce units after the alert is active, they do not go into the garrison.

Or is that a feature ?

comment:6 by Itms, 10 years ago

Let's say it's a missing feature. ;-)

But it's a good idea, and I'm wondering if the produce-then-garrison feature was present in the game when I worked on the alert.

If you want, I can work on this feature, knowing the code I think I can do it rather quickly.

Last edited 10 years ago by Itms (previous) (diff)

comment:7 by Michael, 10 years ago

Missing feature is good.

Yes, I would like that. I already tried to add it by myself but until now it only works for units which where produced in the civic center.

comment:8 by Itms, 10 years ago

See #2342 then :)

Anyway, this patch is ready to commit.

comment:9 by mimo, 10 years ago

Resolution: fixed
Status: newclosed

In 14484:

fixes #2340, patch by itms

comment:10 by mimo, 10 years ago

Keywords: review removed

Thanks boeseRaupe and Itms for the patch

Note: See TracTickets for help on using tickets.