File diff r23953:ba75d2f3b530 → r23954:8e43140b9a66
src/script/api/script_town.cpp
Show inline comments
 
@@ -346,8 +346,7 @@
 
	}
 

	
 
	int num = 0;
 
	const Station *st;
 
	FOR_ALL_STATIONS(st) {
 
	for (const Station *st : Station::Iterate()) {
 
		if (st->town == t && (st->facilities & FACIL_AIRPORT) && st->airport.type != AT_OILRIG) num++;
 
	}
 
	return max(0, 2 - num);