From: Ketmar Dark Date: Tue, 29 Aug 2017 11:51:16 +0000 (+0300) Subject: less log spam in model loader (hack!) X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=a6271e37492b08be8791fdc0b452f42e04c86d16;p=d2df-sdl.git less log spam in model loader (hack!) --- diff --git a/src/game/g_playermodel.pas b/src/game/g_playermodel.pas index fe68b2b..3c121db 100644 --- a/src/game/g_playermodel.pas +++ b/src/game/g_playermodel.pas @@ -368,6 +368,7 @@ begin for b := A_STAND to A_LAST do begin aname := s+'_RIGHTANIM'+IntToStr(b); + //e_LogWritefln('### MODEL FILE: [%s]', [prefix+config.ReadStr(AnimNames[b], 'resource', '')]); if not (g_Frames_CreateWAD(nil, aname, prefix+config.ReadStr(AnimNames[b], 'resource', ''), 64, 64, config.ReadInt(AnimNames[b], 'frames', 1), diff --git a/src/game/g_textures.pas b/src/game/g_textures.pas index 36ab6bd..660e999 100644 --- a/src/game/g_textures.pas +++ b/src/game/g_textures.pas @@ -462,6 +462,9 @@ var begin Result := False; + // models without "advanced" animations asks for "nothing" like this; don't spam log + if (Length(Resource) > 0) and ((Resource[Length(Resource)] = '/') or (Resource[Length(Resource)] = '\')) then exit; + FileName := g_ExtractWadName(Resource); WAD := TWADFile.Create();