Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] [Patch] player_knows_techs_with_flag
Home

[Freeciv-Dev] [Patch] player_knows_techs_with_flag

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch] player_knows_techs_with_flag
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Feb 2002 16:14:52 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

The return value of player_knows_techs_with_flag is used as a boolean
(as the name suggests) but also as an int. The attached patch adds a
new count_techs_with_flag_player_knows which returns int.

It is also possible to rename player_knows_techs_with_flag to
count_techs_with_flag_player_knows and to change
"if(player_knows_techs_with_flag(...))" with
"if(count_techs_with_flag_player_knows(...) > 0)".

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "How about the new language C&? No, that's not 'c ampersand', 'c reference', 
  'reference to c' or 'c and'. It's pronounced 'campersand', to confuse the 
  hell out of people who are unfamiliar with it, and it will, of course, 
  have no pointers."
    -- Xazziri in comp.lang.c++ about C#

Attachment: player_knows_techs_with_flag1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] [Patch] player_knows_techs_with_flag, Raimar Falke <=