mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-20 02:45:37 +01:00
(svn r12173) -Cleanup: Minor codestyle fixes.
This commit is contained in:
parent
db0eb9570c
commit
06de1215c1
@ -285,8 +285,11 @@ static bool ScanPathAddGrf(const char *filename)
|
|||||||
/* Because there can be multiple grfs with the same name, make sure we checked all grfs with the same name,
|
/* Because there can be multiple grfs with the same name, make sure we checked all grfs with the same name,
|
||||||
* before inserting the entry. So insert a new grf at the end of all grfs with the same name, instead of
|
* before inserting the entry. So insert a new grf at the end of all grfs with the same name, instead of
|
||||||
* just after the first with the same name. Avoids doubles in the list. */
|
* just after the first with the same name. Avoids doubles in the list. */
|
||||||
if (strcasecmp(c->name, d->name) <= 0) stop = true;
|
if (strcasecmp(c->name, d->name) <= 0) {
|
||||||
else if (stop) break;
|
stop = true;
|
||||||
|
} else if (stop) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (added) {
|
if (added) {
|
||||||
c->next = d;
|
c->next = d;
|
||||||
|
Loading…
Reference in New Issue
Block a user