1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

Cleanup: Remove write-only flag_offset member from server list. (#12872)

A remnant of language flags, removed from the server list long ago.
This commit is contained in:
2024-07-21 08:18:09 +01:00
committed by GitHub
parent 31e2f5a8a0
commit 4b6e3f86c2

View File

@@ -195,7 +195,6 @@ protected:
int lock_offset; ///< Left offset for lock icon. int lock_offset; ///< Left offset for lock icon.
int blot_offset; ///< Left offset for green/yellow/red compatibility icon. int blot_offset; ///< Left offset for green/yellow/red compatibility icon.
int flag_offset; ///< Left offset for language flag icon.
/** /**
* (Re)build the GUI network game list (a.k.a. this->servers) as some * (Re)build the GUI network game list (a.k.a. this->servers) as some
@@ -472,7 +471,6 @@ public:
{ {
this->lock_offset = ScaleGUITrad(5); this->lock_offset = ScaleGUITrad(5);
this->blot_offset = this->lock_offset + ScaleGUITrad(3) + GetSpriteSize(SPR_LOCK).width; this->blot_offset = this->lock_offset + ScaleGUITrad(3) + GetSpriteSize(SPR_LOCK).width;
this->flag_offset = this->blot_offset + ScaleGUITrad(2) + GetSpriteSize(SPR_BLOT).width;
} }
void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override