mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- make map art work.
This commit is contained in:
parent
b5dbc3cf29
commit
bc007d75de
1 changed files with 7 additions and 6 deletions
|
@ -598,13 +598,14 @@ void artClearMapArt(void)
|
|||
|
||||
void artSetupMapArt(const char* filename)
|
||||
{
|
||||
if (currentMapArt.CompareNoCase(filename)) return;
|
||||
currentMapArt = filename;
|
||||
artClearMapArt();
|
||||
|
||||
FString lcfilename = filename;
|
||||
FString lcfilename = StripExtension(filename);
|
||||
lcfilename.MakeLower();
|
||||
|
||||
if (currentMapArt.CompareNoCase(lcfilename) == 0) return;
|
||||
artClearMapArt();
|
||||
currentMapArt = lcfilename;
|
||||
|
||||
|
||||
// Re-get from the texture manager if this map's tiles have already been created.
|
||||
if (TileFiles.maptilesadded.Find(lcfilename) < TileFiles.maptilesadded.Size())
|
||||
{
|
||||
|
@ -634,7 +635,7 @@ void artSetupMapArt(const char* filename)
|
|||
|
||||
for (bssize_t i = 0; i < MAXARTFILES_TOTAL - MAXARTFILES_BASE; i++)
|
||||
{
|
||||
FStringf fullname("%s_%02d.art", filename, i);
|
||||
FStringf fullname("%s_%02d.art", lcfilename.GetChars(), i);
|
||||
TileFiles.LoadArtFile(fullname, filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue