From ab9debf3fa91f3b36c6739f4affbdc187e78113d Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 13 Mar 2005 01:16:52 +0000 Subject: * Moved Being public char *speech to private std::string speech * Moved Being public PATH_NODE *path to private std::list path * Fixed warping issue which corrupted player (which also applies to respawning) * Got rid of sound error in Setup window --- src/main.cpp | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 69ffd431..a48b184b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -76,20 +76,6 @@ Sound sound; // ini file configuration reader Configuration config; -// macros for safe object deletion -#define SAFE_DELETE(object) { \ - if (object != NULL) { \ - delete object; \ - } \ -} - -#define SAFE_DELETE_ARRAY(array) { \ - if (array != NULL) { \ - delete [] array; \ - } \ -} - - /** * Listener used for responding to map start error dialog. */ @@ -313,9 +299,9 @@ void init_engine() void exit_engine() { config.write(dir); - SAFE_DELETE_ARRAY(dir); - SAFE_DELETE(gui); - SAFE_DELETE(graphics); + delete[] dir; + delete gui; + delete graphics; // Shutdown libxml xmlCleanupParser(); -- cgit v1.2.3-60-g2f50