mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user