mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 07:32:02 +00:00
TexturePalette.m: microscopic update
remove a bogus comment, clarify a printf call, add parens around a ternary test.
This commit is contained in:
parent
ba508fa3e0
commit
0d0e7bfe18
1 changed files with 2 additions and 4 deletions
|
@ -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!",
|
||||||
|
|
Loading…
Reference in a new issue