summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e540bbf)
raw | patch | inline | side by side (parent: e540bbf)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 29 Aug 2017 11:51:16 +0000 (14:51 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 29 Aug 2017 11:51:45 +0000 (14:51 +0300) |
src/game/g_playermodel.pas | patch | blob | history | |
src/game/g_textures.pas | patch | blob | history |
index fe68b2b6411242ba2a8fe90ec7a500b637bfb1fa..3c121dba7854435f9a2e5d6a5cc4419b82f72a40 100644 (file)
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)
--- a/src/game/g_textures.pas
+++ b/src/game/g_textures.pas
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();