Switch MAX_REACTORS from #define to constexpr

This commit is contained in:
Kp 2016-12-10 17:51:08 +00:00
parent 62a4f001ea
commit 65b05638cc

View file

@ -63,10 +63,10 @@ void read_model_guns(const char *filename, reactor &);
namespace dsx {
#if defined(DXX_BUILD_DESCENT_I)
#define MAX_REACTORS 1
constexpr unsigned MAX_REACTORS = 1;
constexpr unsigned Num_reactors = 1;
#elif defined(DXX_BUILD_DESCENT_II)
#define MAX_REACTORS 7
constexpr unsigned MAX_REACTORS = 7;
#define DEFAULT_CONTROL_CENTER_EXPLOSION_TIME 30 // Note: Usually uses Alan_pavlish_reactor_times, but can be overridden in editor.
extern unsigned Num_reactors;