Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12362) gui_rect_iterate doesn't work for unaligned til
Home

[Freeciv-Dev] (PR#12362) gui_rect_iterate doesn't work for unaligned til

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12362) gui_rect_iterate doesn't work for unaligned tilesets
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 26 Feb 2005 02:09:52 -0800
Reply-to: bugs@xxxxxxxxxxx

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

The new gui_rect_iterate requires that classic tilesets be a multiple of 
2 in dimension, and iso/hex/iso-hex tilesets be a multiple of 4 (in both 
directions).

This means engels doesn't work anymore.

It could be fixed, either by using floating-point match in 
gui_rect_iterate or by doing division more carefully (which 
unfortunately means a lot of duplicated writing).

This quick-and-dirty patch does the latter.  Is this worthwhile?

-jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12362) gui_rect_iterate doesn't work for unaligned tilesets, Jason Short <=