Skip to content

Commit

Permalink
Exposed level adhocs vector
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Oct 13, 2023
1 parent f285dc7 commit 6f16b63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions source_files/edge/p_setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include "i_defs.h"

#include <vector>
#include <map>

#include "endianess.h"
Expand Down Expand Up @@ -84,7 +83,7 @@ DEF_CVAR(udmf_strict, "0", CVAR_ARCHIVE)
//

// Stores pointers to ad-hoc/derived classes that need to be cleaned up on ending a level
static std::vector<void *> level_adhocs;
std::vector<void *> level_adhocs;

int numvertexes;
vertex_t *vertexes = nullptr;
Expand Down
4 changes: 4 additions & 0 deletions source_files/edge/p_setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@

#include "math_crc.h"

#include <vector>

extern epi::crc32_c mapsector_CRC;
extern epi::crc32_c mapline_CRC;
extern epi::crc32_c mapthing_CRC;

extern std::vector<void *> level_adhocs;

extern int mapthing_NUM;

// Called by startup code.
Expand Down

0 comments on commit 6f16b63

Please sign in to comment.