mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user