Added terrain editing tool.

This commit is contained in:
Justin Marshall
2026-05-28 17:15:52 -07:00
parent 05d547a27b
commit e4c87fd5a4
91 changed files with 21538 additions and 199 deletions
+4
View File
@@ -30,6 +30,7 @@ If you have questions concerning this license or the applicable additional terms
#pragma hdrstop
#include "qe3.h"
#include "Terrain.h"
int mapModified; // for quit confirmation (0 = clean, 1 = unsaved,
@@ -521,6 +522,7 @@ void Map_Free(void) {
// clear all the render and sound system data
g_qeglobals.rw->InitFromMap( NULL );
g_qeglobals.sw->ClearAllSoundEmitters();
Terrain_Clear();
Texture_ClearInuse();
Pointfile_Clear();
@@ -840,6 +842,7 @@ void Map_LoadFile(const char *filename) {
g_pParentWnd->GetCamera()->BuildRendererState();
}
Map_LoadDecals(filename);
Terrain_Load(filename);
Sys_EndWait();
Sys_UpdateWindows(W_ALL);
@@ -1086,6 +1089,7 @@ bool Map_SaveFile(const char *filename, bool use_region, bool autosave) {
map.Write(mapFile, mapExt, !(autosave || localFile));
if (!use_region) {
Map_SaveDecals(filename);
Terrain_Save(filename);
}
mapModified = 0;