Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12424) load_sprite should be static
Home

[Freeciv-Dev] (PR#12424) load_sprite should be static

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12424) load_sprite should be static
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 3 Mar 2005 11:07:54 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Nobody outside of tileset.c should ever use load_sprite.  All of the 
users I know of now are buggy and should be fixed.

As an example the gtk2 client uses this function to load a flag sprite. 
  But it doesn't check the fallback flag so it may end up with a NULL 
flag, when it could easily just access the already-loaded flag directly.

-jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12424) load_sprite should be static, Jason Short <=