equal
deleted
inserted
replaced
624 if ((++w->vscroll.pos & 0x1F) == 0) |
624 if ((++w->vscroll.pos & 0x1F) == 0) |
625 SetWindowDirty(w); |
625 SetWindowDirty(w); |
626 break; |
626 break; |
627 |
627 |
628 case WE_PLACE_OBJ: { |
628 case WE_PLACE_OBJ: { |
629 // you cannot destroy a HQ, only relocate it. So build_HQ is called, just with different flags |
629 /* You cannot destroy a HQ, only relocate it. So build_HQ is called, just with different flags */ |
630 TileIndex tile = DEREF_PLAYER(w->window_number)->location_of_house; |
630 TileIndex tile = DEREF_PLAYER(w->window_number)->location_of_house; |
631 if (DoCommandP(e->place.tile, (tile == 0) ? 0 : (1 << 16) | w->window_number, 0, NULL, CMD_BUILD_COMPANY_HQ | CMD_AUTO | CMD_NO_WATER | CMD_MSG(STR_7071_CAN_T_BUILD_COMPANY_HEADQUARTERS))) |
631 if (DoCommandP(e->place.tile, (tile == 0) ? 0 : 1 | w->window_number, 0, NULL, CMD_BUILD_COMPANY_HQ | CMD_AUTO | CMD_NO_WATER | CMD_MSG(STR_7071_CAN_T_BUILD_COMPANY_HEADQUARTERS))) |
632 ResetObjectToPlace(); |
632 ResetObjectToPlace(); |
633 break; |
633 break; |
634 } |
634 } |
635 |
635 |
636 |
636 |