[3.3.x] Cannot suicide characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    [3.3.x] Cannot suicide characters

    The suicide command doesn't work in 3.3.x due to the fact that keypresses were changed to a structure: "code" + "mods".

    Code:
    		/* Special Verification for suicide */
    		prt("Please verify SUICIDE by typing the '@' sign: ", 0, 0);
    		flush();
    		ch = inkey();
    		prt("", 0, 0);
    		if (ch.code != '@') return;
    In this case, struct keypress ch is filled with code = '0' and mods = KC_MOD_CONTROL + KC_MOD_ALT. The check should be more explicite.
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Suicide works fine for me in 3.3.2 (32-bit Linux, US keyboard), so it's clearly platform-specific to some extent. Added to #1460.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎