Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: SDL client don't compile
Home

[Freeciv-Dev] Re: SDL client don't compile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Frederic Rodrigo <f.rodrigo@xxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: SDL client don't compile
From: Raimar Falke <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Wed, 21 Jan 2004 19:34:52 +0100

On Wed, Jan 21, 2004 at 11:32:56AM +0100, Frederic Rodrigo wrote:
> In CVS version, the SDL client don't compile, at line 2015:
> 
>   count = fill_unit_sprite_array(pSprites, pUnit, &solid_bg);
> 
> missing  an argument. I don't kown if you must add FALSE or TRUE.

I think a more complex fix is needed. Something like:

      if (unit_list_size(&ptile->units) > 1
          || unit_list_get(&ptile->units, 0)->occupy) {
        sprs += fill_unit_sprite_array(sprs, punit, solid_bg, TRUE);
      } else {
        sprs += fill_unit_sprite_array(sprs, punit, solid_bg, FALSE);
      }

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Microsoft does have a year 2000 problem. I'm part of it. I'm running Linux.


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