Mention in console if skin is loaded in compat mode and add 3d model print as well

This commit is contained in:
NepDisk 2025-07-21 17:56:56 -04:00
parent 06f5f8cb86
commit 1118b67932
2 changed files with 8 additions and 1 deletions

View file

@ -577,11 +577,13 @@ addskinmodel:
{
if (stricmp(skinname, skins[s].name) == 0)
{
boolean iscompatskin = wadfiles[skins[s].wadnum]->compatmode;
md2_playermodels[s].skin = s;
md2_playermodels[s].scale = scale;
md2_playermodels[s].offset = offset;
md2_playermodels[s].notfound = false;
strcpy(md2_playermodels[s].filename, filename);
CONS_Printf("Added 3D model for '%s' %s\n", skins[s].name, iscompatskin ? "in compatibility mode" : "");
goto modelfound;
}
}
@ -641,11 +643,13 @@ void HWR_AddPlayerModel(int skin) // For skins that were added after startup
if (stricmp(skinname, skins[skin].name) == 0)
{
boolean iscompatskin = wadfiles[skins[skin].wadnum]->compatmode;
md2_playermodels[skin].skin = skin;
md2_playermodels[skin].scale = scale;
md2_playermodels[skin].offset = offset;
md2_playermodels[skin].notfound = false;
strcpy(md2_playermodels[skin].filename, filename);
CONS_Printf("Added 3D model for '%s' %s\n", skins[skin].name, iscompatskin ? "in compatibility mode" : "");
goto playermodelfound;
}
}

View file

@ -684,6 +684,7 @@ void R_AddSkins(UINT16 wadnum)
size_t size;
skin_t *skin;
boolean realname;
boolean iscompatskin = false;
//
// search for all skin markers in pwad
@ -822,7 +823,9 @@ next_token:
R_FlushTranslationColormapCache();
CONS_Printf(M_GetText("Added skin '%s'\n"), skin->name);
iscompatskin = wadfiles[skin->wadnum]->compatmode;
CONS_Printf(M_GetText("Added skin '%s' %s\n"), skin->name, iscompatskin ? "in compatibility mode" : "");
#ifdef SKINVALUES
skin_cons_t[numskins].value = numskins;