#24 lgeneral freezes when ending turn

closed-fixed
nobody
None
5
2006-05-27
2006-04-17
No

lgeneral (version 1.2beta-11) freezes when I try to end
the first turn of the lowlands scenario in a PG
campaign. It freezes consistently with the same savegame.

It freezes the moment I click the green "v" to confirm
my ending the turn.

When in this frozen state, lgeneral won't quit from a
ctrl+c in the terminal. It exits on a KILL signal.

I'm running Ubuntu Linux "Breezy Badger" with kernel
2.6.12 (ubuntus version 10-k7, to be exact).

Attached is the savegame causing the freeze.

Discussion

  • Sigve Indregard

    Sigve Indregard - 2006-04-17

    Logged In: YES
    user_id=1165025

    Actually, I discovered that it is the event_is_key_pressed()
    function of event.c that returns true all the time. It turns
    out that keystate of key 300 - numlock - is 1 when num lock
    is on, not when num lock is _pressed_.

    I guess the same problem affects caps lock and scroll lock.

    An easy patch is to change (line 58 of event.c)

    for (i=0;i<SDLK_LAST;i++) if (keystate[i]) return 1;

    to

    for (i=0;i<SDLK_LAST;i++) {
    if (keystate[i]
    && i != SDLK_NUMLOCK && i != SDLK_CAPSLOCK && i !=
    SDLK_SCROLLOCK)
    {
    return 1;
    }
    }

     
  • Michael Speck

    Michael Speck - 2006-05-27

    Logged In: YES
    user_id=59991

    thanks for the fix!

     
  • Michael Speck

    Michael Speck - 2006-05-27
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks