[Freeciv-Dev] [Patch] player_knows_techs_with_flag
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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#
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 <=
|
|