Make error message for missing sound file red in the debug console.

master
Icedream 2013-12-21 10:06:05 +01:00
parent 904f9b3326
commit bdb9c22507
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ for soundName, soundPaths in pairs(SWEP.Sounds) do
resource.AddFile("sound/" .. soundPath)
end
if !file.Exists("sound/" .. soundPath, "GAME") then
print("[Disguiser] WARNING: Sound not found: " .. soundPath)
MsgC(Color(255, 0, 0), "[Disguiser] WARNING: Sound not found: " .. soundPath)
end
util.PrecacheSound(soundPath)
end