Skip to content

Commit

Permalink
Tweakage/console-only fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jun 7, 2024
1 parent f1bcd7b commit 0fe42ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions source_files/obsidian_main/g_doom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ enum map_format_e {
map_format_e map_format;
static bool UDMF_mode;

typedef std::vector<qLump_c *> lump_bag_t;

static lump_bag_t *sections[NUM_SECTIONS];
static std::vector<qLump_c *> *sections[NUM_SECTIONS];

static const char *section_markers[NUM_SECTIONS][2] = {
{"PP_START", "PP_END"},
Expand Down Expand Up @@ -422,7 +420,7 @@ static void WriteBehavior() {
static void ClearSections() {
for (int k = 0; k < NUM_SECTIONS; k++) {
if (!sections[k]) {
sections[k] = new lump_bag_t;
sections[k] = new std::vector<qLump_c *>;
}

for (unsigned int n = 0; n < sections[k]->size(); n++) {
Expand Down
3 changes: 2 additions & 1 deletion source_files/obsidian_main/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
#ifndef CONSOLE_ONLY
#include "hdr_fltk.h"
#include "ui_window.h"
#endif
#include "lib_util.h"
#include "sys_debug.h"
#endif

extern std::string OBSIDIAN_TITLE;

#ifdef OBSIDIAN_TIMESTAMP
Expand Down

0 comments on commit 0fe42ed

Please sign in to comment.