Change all tilemaps to be short[1200] instead of int[1200]

This removes around megabyte from the binary, so a stripped -Og binary
went from 4.0 megabytes to 2.9 megabytes, and an unstripped -O0 binary
went from 8.1 megabytes to 7.1 megabytes, which means I can now finally
upload an unstripped -O0 binary to Discord without having to give money
to Discord for their dumb Nitro thing or whatever.
This commit is contained in:
Misa
2020-07-18 21:06:35 -07:00
committed by Ethan Lee
parent df96b2a594
commit 6c85fae339
16 changed files with 460 additions and 460 deletions

View File

@@ -130,7 +130,7 @@ class editorclass{
void reset();
void getlin(const enum textmode mode, const std::string& prompt, std::string* ptr);
const int* loadlevel(int rxi, int ryi);
const short* loadlevel(int rxi, int ryi);
void placetile(int x, int y, int t);
@@ -190,7 +190,7 @@ class editorclass{
std::vector<std::string> getLevelDirFileNames( );
static const int maxwidth = 20, maxheight = 20; //Special; the physical max the engine allows
static const int numrooms = maxwidth * maxheight;
int contents[40 * 30 * numrooms];
short contents[40 * 30 * numrooms];
int vmult[30 * maxheight];
int numtrinkets();
int numcrewmates();