src/unmovable_cmd.cpp
changeset 6953 230d1e3ac86c
parent 6950 14ecb0acdfb4
child 7202 dc312a87f450
equal deleted inserted replaced
6952:b19643469024 6953:230d1e3ac86c
    47 		p->location_of_house = 0; // reset HQ position
    47 		p->location_of_house = 0; // reset HQ position
    48 		InvalidateWindow(WC_COMPANY, pid);
    48 		InvalidateWindow(WC_COMPANY, pid);
    49 	}
    49 	}
    50 
    50 
    51 	/* cost of relocating company is 1% of company value */
    51 	/* cost of relocating company is 1% of company value */
    52 	return CommandCost((int32)(CalculateCompanyValue(p) / 100));
    52 	return CommandCost(CalculateCompanyValue(p) / 100);
    53 }
    53 }
    54 
    54 
    55 void UpdateCompanyHQ(Player *p, uint score)
    55 void UpdateCompanyHQ(Player *p, uint score)
    56 {
    56 {
    57 	byte val;
    57 	byte val;