URL:
  <http://gna.org/bugs/?14230>

                 Summary: add new server state S_S_SAVEGAME to prevent
changing of the ruleset after a savegame was loaded
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Mittwoch 02.09.2009 um 00:20
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: None

    _______________________________________________________

Details:

at the moment it is possible to change the ruleset
after a savegame was loaded. This will result in
strange error messages.

This patch adds a new server state S_S_SAVEGAME,
which is equivalent to S_S_INITIAL but changing
the rulesetdir is not allowed.

Two functions are added:

bool inline server_state_pregame(void)
-> TRUE for pregame server states
   (S_S_INITIAL and S_S_SAVEGAME)

bool inline server_state_started(void)
-> TRUE for started games
   (S_S_RUNNING and S_S_OVER)

all uses of server state (S_S_*) were checked. I hope
that I did not miss anything ...

Please consider this patch for 2.2



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mittwoch 02.09.2009 um 00:20  Name:
0002-add-new-server-state-S_S_SAVEGAME-to-prevent-changin.patch  Size: 16kB  
By: syntron

<http://gna.org/bugs/download.php?file_id=6554>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14230>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to