mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r13540) -Codechange: Less a magic number and a more adaptable code
This commit is contained in:
parent
8578181a3a
commit
7b873ce0bc
@ -1099,8 +1099,7 @@ public:
|
|||||||
}
|
}
|
||||||
uint extra_spacing_at[] = { 3, 4, 7, 8, 10, 16, 0 };
|
uint extra_spacing_at[] = { 3, 4, 7, 8, 10, 16, 0 };
|
||||||
|
|
||||||
/* Yes, it defines about 27 widgets for this toolbar */
|
for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) {
|
||||||
for (uint i = 0, x = 0, j = 0, b = 0; i < 27; i++) {
|
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 4:
|
case 4:
|
||||||
this->widget[i].left = x;
|
this->widget[i].left = x;
|
||||||
|
Loading…
Reference in New Issue
Block a user