@@ -280,7 +280,7 @@ struct PlansWindow : Window {
|
||||
uint text_right = (rtl ? btn_left - 4 : ir.right);
|
||||
const_cast<PlansWindow*>(this)->vis_btn_left = btn_left;
|
||||
|
||||
for (uint16 i = this->vscroll->GetPosition(); this->vscroll->IsVisible(i) && i < this->vscroll->GetCount(); i++) {
|
||||
for (uint16_t i = this->vscroll->GetPosition(); this->vscroll->IsVisible(i) && i < this->vscroll->GetCount(); i++) {
|
||||
Plan *p = Plan::Get(list[i].plan_id);
|
||||
|
||||
if (i == this->selected) GfxFillRect(r.left + 1, y, r.right, y + this->resize.step_height, PC_DARK_GREY);
|
||||
@@ -353,7 +353,7 @@ struct PlansWindow : Window {
|
||||
|
||||
case WID_PLN_COLOUR: {
|
||||
Dimension dim = GetStringBoundingBox(STR_PLANS_COLOUR);
|
||||
for (uint8 colour = COLOUR_BEGIN; colour != COLOUR_END; ++colour) {
|
||||
for (uint8_t colour = COLOUR_BEGIN; colour != COLOUR_END; ++colour) {
|
||||
dim = maxdim(dim, GetStringBoundingBox(STR_COLOUR_DARK_BLUE + colour));
|
||||
}
|
||||
*size = adddim(dim, padding);
|
||||
@@ -491,7 +491,7 @@ void ShowPlansWindow()
|
||||
* Only the creator of a plan executes this function.
|
||||
* The other players should not be bothered with these changes.
|
||||
*/
|
||||
void CcAddPlan(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2, uint64 p3, uint32 cmd)
|
||||
void CcAddPlan(const CommandCost &result, TileIndex tile, uint32_t p1, uint32_t p2, uint64_t p3, uint32_t cmd)
|
||||
{
|
||||
if (result.Failed()) return;
|
||||
|
||||
|
Reference in New Issue
Block a user