mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
(svn r16539) [0.7] -Backport from trunk:
- Fix: When finding duplicate graphics sets favour the more complete one (r16538) - Fix: [Squirrel] Crash that occured when an AI was halted while one or more generators were still in a 'running' state [FS#2942] (r16534) - Fix: [Squirrel] Do not copy an object when we just checked that the pointer to it is NULL (r16532) - Fix: Notify small UFOs on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost (r16525) - Update: a few languages.
This commit is contained in:
+3
-1
@@ -468,7 +468,9 @@ bool OBGFileScanner::AddFile(const char *filename, size_t basepath_length)
|
||||
}
|
||||
}
|
||||
if (duplicate != NULL) {
|
||||
if (duplicate->version >= graphics->version) {
|
||||
/* The more complete graphics set takes precedence over the version number. */
|
||||
if ((duplicate->files == graphics->files && duplicate->version >= graphics->version) ||
|
||||
duplicate->files > graphics->files) {
|
||||
DEBUG(grf, 1, "Not adding %s (%i) as base graphics set (duplicate)", graphics->name, graphics->version);
|
||||
delete graphics;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user