Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2005:
[Freeciv-Dev] (PR#13489) bug in old_impr_type_id (savegame compatibility
Home

[Freeciv-Dev] (PR#13489) bug in old_impr_type_id (savegame compatibility

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13489) bug in old_impr_type_id (savegame compatibility code for 2.0)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Jul 2005 19:35:15 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13489 >

static int old_impr_type_id(Impr_Type_id type)
{
  int i;

  for (i = 0; i < ARRAY_SIZE(old_impr_types); i++) {
    if (mystrcasecmp(unit_name_orig(type), old_impr_types[i]) == 0) {
      return i;
    }
  }

  /* It's a new improvement. Savegame cannot be forward compatible so we can
   * return anything */
  return type;
}


...


Shouldn't this be impr_name_orig?  Mateusz?  This affects 2.0 and the
dev branch.

-jason





[Prev in Thread] Current Thread [Next in Thread]