TexturePalette.m: microscopic update

remove a bogus comment, clarify a printf call, add parens around a ternary
test.
This commit is contained in:
Jeff Teunissen 2010-10-10 02:24:35 -04:00 committed by Bill Currie
parent ba508fa3e0
commit 0d0e7bfe18

View file

@ -192,7 +192,7 @@ TEX_InitFromWad (const char *path)
start = Sys_DoubleTime (); start = Sys_DoubleTime ();
newpath = [[preferences_i getProjectPath] cString]; newpath = [[preferences_i getProjectPath] cString];
newpath = va ("%s%s%s", newpath, newpath[0] ? "/" : "", path); newpath = va ("%s%s%s", newpath, (newpath[0] ? "/" : ""), path);
// free any textures // free any textures
for (i = 0; i < tex_count; i++) for (i = 0; i < tex_count; i++)
@ -200,9 +200,7 @@ TEX_InitFromWad (const char *path)
tex_count = 0; tex_count = 0;
// try to use the cached wadfile Sys_Printf ("TEX_InitFromWad: loading %s\n", newpath);
Sys_Printf ("TEX_InitFromWad %s\n", newpath);
wad = wad_open (newpath); wad = wad_open (newpath);
if (!wad) { if (!wad) {
NSRunAlertPanel (@"Wad Error!", NSRunAlertPanel (@"Wad Error!",