diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-02-07 20:27:38 +0100 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-02-07 20:27:38 +0100 |
commit | e6932c30b2645ea896b1e90f84aa75da8e9cadf6 (patch) | |
tree | 0e2c4d2dea464ef3604fecc371d49b8fc2e5f42e | |
parent | 8a7fe2d9ee58b8562f428486f031fb65b701dba7 (diff) | |
download | serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.tar.gz serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.tar.bz2 serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.tar.xz serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.zip |
use safe askyesno for mayorship resignation
... current accidental resignation count is around 3.
-rw-r--r-- | npc/functions/politics.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt index 07f6d3aca..9811579f0 100644 --- a/npc/functions/politics.txt +++ b/npc/functions/politics.txt @@ -673,7 +673,7 @@ function script POL_Manage { case 99: mesc l("Really resign?"), 1; next; - if (askyesno() == ASK_YES) { + if (askyesnosafe() == ASK_YES) { setd(.@town$+"_MAYOR$", "Jesus Saves"); // If you have already received a vote, this will be skipped if (getd(.@town$+"_VOTES[0]") <= 0 && |