src/town_cmd.cpp
changeset 6605 d92f454a00a6
parent 6571 6a8a1d0835d9
child 6610 0d1b7a295db1
equal deleted inserted replaced
6604:3ee954a2c95e 6605:d92f454a00a6
   422 	_current_player = OWNER_TOWN;
   422 	_current_player = OWNER_TOWN;
   423 
   423 
   424 	if (hs->building_flags & BUILDING_HAS_1_TILE &&
   424 	if (hs->building_flags & BUILDING_HAS_1_TILE &&
   425 			HASBIT(t->flags12, TOWN_IS_FUNDED) &&
   425 			HASBIT(t->flags12, TOWN_IS_FUNDED) &&
   426 			CanDeleteHouse(tile) &&
   426 			CanDeleteHouse(tile) &&
       
   427 			max(_cur_year - GetHouseConstructionYear(tile), 0) >= hs->minimum_life &&
   427 			--t->time_until_rebuild == 0) {
   428 			--t->time_until_rebuild == 0) {
   428 		t->time_until_rebuild = GB(r, 16, 8) + 192;
   429 		t->time_until_rebuild = GB(r, 16, 8) + 192;
   429 
   430 
   430 		ClearTownHouse(t, tile);
   431 		ClearTownHouse(t, tile);
   431 
   432