Bug #2374
open
Building a city near unknown city fails with no feedback
Added by Andrew McGuinness 3 days ago.
Updated 3 days ago.
Description
I tried to build a city, it prompted me for a name, but then just didn't do anything, the settler was still on the square.
I assume there is a city I don't know about within citymindist, but there is no message.
(personally I think in this case the build city should succeed, but that's debatable and in any case a failure should always have some message).
Files
ACTION_PERFORM_UNIT_*() macros call illegal_action() with TRUE as the request_kind parameter. That's certainly wrong, as it should be an integer, not a boolean. It's less clear if REQEST_PLAYER_INITIATED (zero) would be the always right thing to pass, but at least it would make illegal_action() to emit notifications.
Marko Lindqvist wrote in #note-1:
It's less clear if REQEST_PLAYER_INITIATED (zero) would be the always right thing to pass
Patches based on the assumption that it is.
Note that REQEST is a misspelling, for a future fix. (REQUEST)
Also available in: Atom
PDF