Commit 48026d0f authored by Dino Bollinger's avatar Dino Bollinger Committed by Richard Gobeille

Duke3D: Only update previous boardfilename if differs

parent 22c2334c
......@@ -467,8 +467,10 @@ int32_t G_LoadPlayer(savebrief_t & sv)
{
// only setup art if map differs from previous
if (!previousboardfilename[0] || Bstrcmp(previousboardfilename, currentboardfilename))
{
artSetupMapArt(currentboardfilename);
Bstrcpy(previousboardfilename, currentboardfilename);
Bstrcpy(previousboardfilename, currentboardfilename);
}
append_ext_UNSAFE(currentboardfilename, ".mhk");
engineLoadMHK(currentboardfilename);
}
......@@ -665,8 +667,10 @@ int32_t G_LoadPlayer(savebrief_t & sv)
{
// only setup art if map differs from previous
if (!previousboardfilename[0] || Bstrcmp(previousboardfilename, currentboardfilename))
{
artSetupMapArt(currentboardfilename);
Bstrcpy(previousboardfilename, currentboardfilename);
Bstrcpy(previousboardfilename, currentboardfilename);
}
append_ext_UNSAFE(currentboardfilename, ".mhk");
engineLoadMHK(currentboardfilename);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment