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

                 Summary: 'non-pact diplstate in handle_player_cancel_pact'
error in endless loop
                 Project: Freeciv
            Submitted by: None
            Submitted on: Fri 30 May 2014 06:51:00 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: maecmp...@mail.ru
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: Microsoft Windows
         Planned Release: 

    _______________________________________________________

Details:

Hello,
I'm getting 'non-pact diplstate in handle_player_cancel_pact' error in endless
loop (last message repeated 2097152 times (total 4194304 repeats)) when I
click end turn. Save attached.

This could possibly happen in pact switch logic:

switch(old_type) {
  case DS_NO_CONTACT: /* possible if someone declares war on our ally */
  case DS_ARMISTICE:
  case DS_CEASEFIRE:
  case DS_PEACE:
    new_type = DS_WAR;
    break;
  case DS_ALLIANCE:
    new_type = DS_ARMISTICE;
    break;
  default:
    log_error("non-pact diplstate in handle_player_cancel_pact");
    return;
  }

Setting new_type = DS_WAR; in default instead of log_error can possibly solve
error. 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 30 May 2014 06:51:00 AM UTC  Name:
freeciv-T0039-Y-2050-manual.sav.bz2  Size: 82kB   By: None

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to