DEADSOFTWARE

less log spam in model loader (hack!)
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 29 Aug 2017 11:51:16 +0000 (14:51 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 29 Aug 2017 11:51:45 +0000 (14:51 +0300)
src/game/g_playermodel.pas
src/game/g_textures.pas

index fe68b2b6411242ba2a8fe90ec7a500b637bfb1fa..3c121dba7854435f9a2e5d6a5cc4419b82f72a40 100644 (file)
@@ -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),
index 36ab6bdba1dc4250ef33fe7d2b8dfaa7585d4243..660e999351988a4fb3dad1ccdecabe614d6dda3b 100644 (file)
@@ -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();