mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-15 15:51:07 +02:00
Added terrain editing tool.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user