mirror of https://github.com/OpenTTD/OpenTTD
(svn r22133) -Fix: some coding style.
parent
50daa3f83d
commit
1a3a1e3b0c
|
@ -81,7 +81,7 @@ void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
|
||||||
/* We don't have any of this engine type.
|
/* We don't have any of this engine type.
|
||||||
* Either we just sold the last one, we build a new one or we stopped replacing it.
|
* Either we just sold the last one, we build a new one or we stopped replacing it.
|
||||||
* In all cases, we need to update the left list */
|
* In all cases, we need to update the left list */
|
||||||
InvalidateWindowData(WC_REPLACE_VEHICLE, Engine::Get(e)->type, true);
|
InvalidateWindowData(WC_REPLACE_VEHICLE, Engine::Get(e)->type, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
|
||||||
*/
|
*/
|
||||||
void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type)
|
void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type)
|
||||||
{
|
{
|
||||||
InvalidateWindowData(WC_REPLACE_VEHICLE, type, false); // Update the autoreplace window
|
InvalidateWindowData(WC_REPLACE_VEHICLE, type, 0); // Update the autoreplace window
|
||||||
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
|
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,8 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LandInfoWindow(TileIndex tile) : Window(), tile(tile) {
|
LandInfoWindow(TileIndex tile) : Window(), tile(tile)
|
||||||
|
{
|
||||||
this->InitNested(&_land_info_desc);
|
this->InitNested(&_land_info_desc);
|
||||||
|
|
||||||
#if defined(_DEBUG)
|
#if defined(_DEBUG)
|
||||||
|
|
|
@ -51,7 +51,7 @@ public:
|
||||||
|
|
||||||
virtual void OnPaint()
|
virtual void OnPaint()
|
||||||
{
|
{
|
||||||
OnInvalidateData(0); // Must be sure that the widgets show the transparency variable changes, also when we use shortcuts.
|
this->OnInvalidateData(0); // Must be sure that the widgets show the transparency variable changes, also when we use shortcuts.
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue