Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Sil (http://angband.oook.cz/forum/forumdisplay.php?f=12)
-   -   Minor bug with sil window management (http://angband.oook.cz/forum/showthread.php?t=8006)

bron October 2, 2016 05:20

Minor bug with sil window management
 
I recently started playing with my inventory and equipment windows switched. For you X11 players this doesn't mean anything, but for us pure curses players it matters (a little). Anyway, it wasn't working right. I tracked down the problem: the "window_flag" variable isn't first being initialized to zero during a restore. i.e. in the file "load.c" at about line 700, you need to change:
Code:

        /* Analyze the options */
        for (n = 0; n < ANGBAND_TERM_MAX; n++)
        {
                /* Analyze the options */
                for (i = 0; i < 32; i++)
                {

to instead be:
Code:

        /* Analyze the options */
        for (n = 0; n < ANGBAND_TERM_MAX; n++)
        {
                op_ptr->window_flag[n] = 0;

                /* Analyze the options */
                for (i = 0; i < 32; i++)
                {

EDIT: Sorry; I forgot the legalese: full permission to use this bug-fix code, without restrictions.


All times are GMT +1. The time now is 13:31.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.