src/town_cmd.cpp
branchnoai
changeset 9359 e915dd81a279
parent 6583 82012e77b10c
child 9476 1d1ed96f32ad
equal deleted inserted replaced
9358:42713dbe6ebe 9359:e915dd81a279
   350 {
   350 {
   351 	int house, rating;
   351 	int house, rating;
   352 	int32 cost;
   352 	int32 cost;
   353 	Town *t;
   353 	Town *t;
   354 
   354 
   355 	if (flags&DC_AUTO && !(flags&DC_AI_BUILDING)) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
   355 	if (flags & DC_AUTO) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
   356 
   356 
   357 	house = GetHouseType(tile);
   357 	house = GetHouseType(tile);
   358 	cost = _price.remove_house * _housetype_remove_cost[house] >> 8;
   358 	cost = _price.remove_house * _housetype_remove_cost[house] >> 8;
   359 
   359 
   360 	rating = _housetype_remove_ratingmod[house];
   360 	rating = _housetype_remove_ratingmod[house];