summaryrefslogtreecommitdiff
path: root/source/sw_model.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-11-25 20:57:50 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-11-25 20:57:50 +0000
commitb00e7bd024285970dd00cfc75d8e690bfa475501 (patch)
tree22ceeee3027fd4872f5621650557bc8ae4391948 /source/sw_model.c
parent5eaaac93ad3b0d2777815717059d977912bd96f7 (diff)
Changed Com_sprintf --> Q_concat in quite some cases.
Make sure WAVE sound driver is built by default. Added --disable-wave option to `configure'. Command line history is now remembered between sessions. ALT+Space refreshes all servers in Server Browser. Handle command line agruments like original Q2 engine did.
Diffstat (limited to 'source/sw_model.c')
-rw-r--r--source/sw_model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/sw_model.c b/source/sw_model.c
index 15664a4..fd60715 100644
--- a/source/sw_model.c
+++ b/source/sw_model.c
@@ -508,7 +508,7 @@ void Mod_LoadTexinfo (lump_t *l)
if (next > 0)
out->next = loadmodel->texinfo + next;
- Com_sprintf (name, sizeof(name), "textures/%s.wal", in->texture);
+ Q_concat( name, sizeof( name ), "textures/", in->texture, ".wal", NULL );
out->image = R_FindImage (name, it_wall);
if (!out->image)
{
@@ -1121,7 +1121,7 @@ void R_BeginRegistration( const char *model ) {
registration_sequence++;
r_oldviewcluster = -1; // force markleafs
- Com_sprintf (fullname, sizeof(fullname), "maps/%s.bsp", model);
+ Q_concat( fullname, sizeof( fullname ), "maps/", model, ".bsp", NULL );
D_FlushCaches ();
// explicitly free the old map if different