Turn tower vectors into plain arrays

Also, the arrays are statically allocated. I forgot to do this when we
were statically allocating things earlier, but better late than never.
This commit is contained in:
Misa
2020-07-03 02:16:18 -07:00
committed by Ethan Lee
parent 9dcda17978
commit adca6a122a
2 changed files with 20 additions and 44 deletions

View File

@@ -1,9 +1,6 @@
#ifndef TOWER_H
#define TOWER_H
#include <string>
#include <vector>
class towerclass
{
public:
@@ -23,15 +20,10 @@ public:
void loadmap();
//public var back:Array = new Array();
//public var contents:Array = new Array();
//public var minitower:Array = new Array();
//public var vmult:Array = new Array();
std::vector<int> back;
std::vector<int> contents;
std::vector<int> minitower;
std::vector<int> vmult;
int back[40 * 120];
int contents[40 * 700];
int minitower[40 * 100];
int vmult[40 * 700];
bool minitowermode;
};