diff options
author | tron <tron@openttd.org> | 2005-10-16 14:07:11 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-16 14:07:11 +0000 |
commit | 0834a88a12906cd207957892156c3ac0d9d66a93 (patch) | |
tree | b1ee8bda78c882c66ed07b46f44b9820ee544c72 /economy.c | |
parent | b537cc66182798b8a368b3391f97f13d67f1ccd4 (diff) | |
download | openttd-0834a88a12906cd207957892156c3ac0d9d66a93.tar.xz |
(svn r3051) Remove the unused function RemoteSubsidyAdd()
Diffstat (limited to 'economy.c')
-rw-r--r-- | economy.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -1000,23 +1000,6 @@ static bool CheckSubsidyDuplicate(Subsidy *s) return false; } -void RemoteSubsidyAdd(Subsidy *s_new) -{ - Subsidy *s; - Pair pair; - - // search the first free subsidy - for(s=_subsidies; s != endof(_subsidies); s++) - if (s->cargo_type == CT_INVALID) - break; - - memcpy(s,s_new,sizeof(Subsidy)); - - pair = SetupSubsidyDecodeParam(s, 0); - AddNewsItem(STR_2030_SERVICE_SUBSIDY_OFFERED, NEWS_FLAGS(NM_NORMAL, NF_TILE, NT_SUBSIDIES, 0), pair.a, pair.b); - - InvalidateWindow(WC_SUBSIDIES_LIST, 0); -} static void SubsidyMonthlyHandler(void) { |