What happened to repeat__ stuff in util.c?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nppangband
    NPPAngband Maintainer
    • Dec 2008
    • 926

    What happened to repeat__ stuff in util.c?

    I am trying to find the code/functionality that replaced some old code in Angband's util.c.

    One part of the codebase I rarely touch is the util.c stuff, that receives and processed input from the keyboard & mouse. The old util.c used to have a bunch of functions and variables centered around macro handling with the theme of "repeat__" (repeat_pull, repeat_clear, repeat__idx, repeat__key, etc).

    What I am can't seem to find is the equivalent Angband codebase of what handles this. For example, the simple macro for low-level mage detection "mabmah" (wth 'b' and 'h' being the two detection spells in the first book).

    The reason I ask is, NPP now has ui-menus for things like spell casting and studying (like the current Angband), but how is the menu display bypassed and macro input received when a macro is running?

    Thanks in advance to anyone who can steer me in the right direction.
    NPPAngband current home page: http://nppangband.bitshepherd.net/
    Source code repository:
    https://github.com/nppangband/NPPAngband_QT
    Downloads:
    https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9647

    #2
    Repeating got absorbed into the command code - see mainly game-cmd.c.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

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