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

@@ -512,7 +512,7 @@ void editorclass::getlin(const enum textmode mode, const std::string& prompt, st
ed.oldenttext = key.keybuffer;
}
const int* editorclass::loadlevel( int rxi, int ryi )
const short* editorclass::loadlevel( int rxi, int ryi )
{
//Set up our buffer array to be picked up by mapclass
rxi -= 100;
@@ -522,7 +522,7 @@ const int* editorclass::loadlevel( int rxi, int ryi )
if(rxi>=mapwidth)rxi-=mapwidth;
if(ryi>=mapheight)ryi-=mapheight;
static int result[1200];
static short result[1200];
for (int j = 0; j < 30; j++)
{