mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 18:43:48 +00:00
Merge branch 'development' of https://github.com/GarageGames/Torque3D into memberMess
# Conflicts: # Engine/source/console/consoleFunctions.cpp
This commit is contained in:
commit
cbce2ee805
154 changed files with 2950 additions and 705 deletions
|
|
@ -1303,20 +1303,20 @@ DefineEngineMethod( TerrainBlock, save, bool, ( const char* fileName),,
|
|||
"@return True if file save was successful, false otherwise")
|
||||
{
|
||||
char filename[256];
|
||||
dStrcpy(filename,fileName);
|
||||
dStrcpy(filename,fileName,256);
|
||||
char *ext = dStrrchr(filename, '.');
|
||||
if (!ext || dStricmp(ext, ".ter") != 0)
|
||||
dStrcat(filename, ".ter");
|
||||
dStrcat(filename, ".ter", 256);
|
||||
return static_cast<TerrainBlock*>(object)->save(filename);
|
||||
}
|
||||
|
||||
//ConsoleMethod(TerrainBlock, save, bool, 3, 3, "(string fileName) - saves the terrain block's terrain file to the specified file name.")
|
||||
//{
|
||||
// char filename[256];
|
||||
// dStrcpy(filename,argv[2]);
|
||||
// dStrcpy(filename,argv[2],256);
|
||||
// char *ext = dStrrchr(filename, '.');
|
||||
// if (!ext || dStricmp(ext, ".ter") != 0)
|
||||
// dStrcat(filename, ".ter");
|
||||
// dStrcat(filename, ".ter", 256);
|
||||
// return static_cast<TerrainBlock*>(object)->save(filename);
|
||||
//}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue