Changeset - r11995:e01a309e6bf5
[Not reviewed]
master
0 2 0
smatz - 15 years ago 2009-05-23 19:26:00
smatz@openttd.org
(svn r16406) -Codechange: constify parameters of CheckSubsidised()
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/subsidy.cpp
Show inline comments
 
@@ -283,13 +283,13 @@ void SubsidyMonthlyLoop()
 
	}
 
no_add:;
 
	if (modified)
 
		InvalidateWindow(WC_SUBSIDIES_LIST, 0);
 
}
 

	
 
bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type)
 
bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type)
 
{
 
	Subsidy *s;
 
	TileIndex xy;
 
	Pair pair;
 

	
 
	/* check if there is an already existing subsidy that applies to us */
src/subsidy_func.h
Show inline comments
 
@@ -13,10 +13,10 @@
 
#include "subsidy_type.h"
 

	
 
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
 
void DeleteSubsidyWithTown(TownID index);
 
void DeleteSubsidyWithIndustry(IndustryID index);
 
void DeleteSubsidyWithStation(StationID index);
 
bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type);
 
bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type);
 
void SubsidyMonthlyHandler();
 

	
 
#endif /* SUBSIDY_FUNC_H */
0 comments (0 inline, 0 general)