src/unmovable_cmd.cpp
changeset 7449 5cedaf2c861c
parent 7446 1c4d469f986e
child 7698 7b2eb61fca53
equal deleted inserted replaced
7448:424ab8df8adb 7449:5cedaf2c861c
    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;