Skip to content
Snippets Groups Projects
  • est31's avatar
    2607b97b
    Fix two reconnect bugs · 2607b97b
    est31 authored
    Fix two bugs related to the reconnect feature
    introduced by commit
    
    3b50b276 "Optional reconnect functionality"
    
    1. Set the password to the stored one
    
    Before, we have done the reconnect attempt with a
    cleared password, so using the feature would only
    work if you had an empty password.
    Thanks to @orwell96 for reporting the bug.
    
    2. Reset the reconnect_requested flag after its use
    
    the_game only writes to the reconect_requested flag
    if it sets it to true. It never sets it to false.
    If the flag is not reset after its use, all "reset"s
    to the main menu will look like the server had
    requested a reconnect.
    2607b97b
    History
    Fix two reconnect bugs
    est31 authored
    Fix two bugs related to the reconnect feature
    introduced by commit
    
    3b50b276 "Optional reconnect functionality"
    
    1. Set the password to the stored one
    
    Before, we have done the reconnect attempt with a
    cleared password, so using the feature would only
    work if you had an empty password.
    Thanks to @orwell96 for reporting the bug.
    
    2. Reset the reconnect_requested flag after its use
    
    the_game only writes to the reconect_requested flag
    if it sets it to true. It never sets it to false.
    If the flag is not reset after its use, all "reset"s
    to the main menu will look like the server had
    requested a reconnect.