diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-14 17:20:39 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-08 12:39:34 +0200 |
commit | fdc11a9f943bcbd674b8b69a2bb0895414928028 (patch) | |
tree | ccd04bb045ed1aeebbff2b88224f9c52988ddc92 /src/newgrf_debug_gui.cpp | |
parent | 0dd339ecd8fab0ae3a4901e0ad185798e04cccf3 (diff) | |
download | openttd-fdc11a9f943bcbd674b8b69a2bb0895414928028.tar.xz |
Codechange: introduce SpriteFile to be used by the sprite loader instead of the global FIO slot functionality
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r-- | src/newgrf_debug_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index 3a5e05a77..0d9fae8a4 100644 --- a/src/newgrf_debug_gui.cpp +++ b/src/newgrf_debug_gui.cpp @@ -11,7 +11,7 @@ #include <stdarg.h> #include "window_gui.h" #include "window_func.h" -#include "fileio_func.h" +#include "random_access_file_type.h" #include "spritecache.h" #include "string_func.h" #include "strings_func.h" @@ -828,7 +828,7 @@ struct SpriteAlignerWindow : Window { switch (widget) { case WID_SA_CAPTION: SetDParam(0, this->current_sprite); - SetDParamStr(1, FioGetFilename(GetOriginFileSlot(this->current_sprite))); + SetDParamStr(1, GetOriginFile(this->current_sprite)->GetSimplifiedFilename().c_str()); break; case WID_SA_OFFSETS_ABS: |