aboutsummaryrefslogtreecommitdiff
path: root/mp/src/utils/vbsp/writebsp.cpp
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/utils/vbsp/writebsp.cpp
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-0d8dceea4310fde5706b3ce1c70609d72a38efdf.tar.xz
source-sdk-2013-0d8dceea4310fde5706b3ce1c70609d72a38efdf.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/utils/vbsp/writebsp.cpp')
-rw-r--r--mp/src/utils/vbsp/writebsp.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/mp/src/utils/vbsp/writebsp.cpp b/mp/src/utils/vbsp/writebsp.cpp
index 60d05980..005990d6 100644
--- a/mp/src/utils/vbsp/writebsp.cpp
+++ b/mp/src/utils/vbsp/writebsp.cpp
@@ -1271,23 +1271,24 @@ void EndBSPFile (void)
// Compute bounds after creating disp info because we need to reference it
ComputeBoundsNoSkybox();
-
+
// Make sure that we have a water lod control eneity if we have water in the map.
EnsurePresenceOfWaterLODControlEntity();
// Doing this here because stuff about may filter out entities
UnparseEntities ();
-
+
// remove unused texinfos
CompactTexinfos();
// Figure out which faces want macro textures.
DiscoverMacroTextures();
-
- char targetPath[1024];
- GetPlatformMapPath( source, targetPath, g_nDXLevel, 1024 );
- Msg ("Writing %s\n", targetPath);
- WriteBSPFile (targetPath);
+
+ char fileName[1024];
+ V_strncpy( fileName, source, sizeof( fileName ) );
+ V_DefaultExtension( fileName, ".bsp", sizeof( fileName ) );
+ Msg ("Writing %s\n", fileName);
+ WriteBSPFile (fileName);
}