Merge branch 'master' into jgrpp
# Conflicts: # src/town_cmd.cpp
This commit is contained in:
@@ -140,8 +140,6 @@ void IncreaseBuildingCount(Town *t, HouseID house_id)
|
||||
{
|
||||
HouseClassID class_id = HouseSpec::Get(house_id)->class_id;
|
||||
|
||||
if (!_loaded_newgrf_features.has_newhouses) return;
|
||||
|
||||
t->cache.building_counts.id_count[house_id]++;
|
||||
_building_counts.id_count[house_id]++;
|
||||
|
||||
@@ -161,8 +159,6 @@ void DecreaseBuildingCount(Town *t, HouseID house_id)
|
||||
{
|
||||
HouseClassID class_id = HouseSpec::Get(house_id)->class_id;
|
||||
|
||||
if (!_loaded_newgrf_features.has_newhouses) return;
|
||||
|
||||
if (t->cache.building_counts.id_count[house_id] > 0) t->cache.building_counts.id_count[house_id]--;
|
||||
if (_building_counts.id_count[house_id] > 0) _building_counts.id_count[house_id]--;
|
||||
|
||||
|
Reference in New Issue
Block a user