1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Apply suggestions from code review

Co-authored-by: Misa Elizabeth Kai <infoteddy@infoteddy.info>
This commit is contained in:
Ally 2022-11-30 14:31:36 -04:00 committed by Misa Elizabeth Kai
parent c16fe04519
commit cbfef2eb53
2 changed files with 6 additions and 6 deletions

View file

@ -24,7 +24,8 @@ static int tr;
static int tg;
static int tb;
struct MapRenderData {
struct MapRenderData
{
int width;
int height;
int zoom;
@ -2096,7 +2097,7 @@ static void rendermap(void)
static void rendermapfog(void)
{
MapRenderData data = getmaprenderdata();
const MapRenderData data = getmaprenderdata();
for (int j = 0; j < data.height; j++)
{
@ -2121,7 +2122,7 @@ static void rendermaplegend(void)
{
// Draw the map legend, aka teleports/targets/trinkets
MapRenderData data = getmaprenderdata();
const MapRenderData data = getmaprenderdata();
const int tile_offset = graphics.flipmode ? 3 : 0;
@ -2151,7 +2152,7 @@ static void rendermaplegend(void)
static void rendermapcursor(const bool flashing)
{
MapRenderData data = getmaprenderdata();
const MapRenderData data = getmaprenderdata();
if (!map.custommode && game.roomx == 109)
{
@ -2686,7 +2687,7 @@ void teleporterrender(void)
// Draw a box around the currently selected teleporter
MapRenderData data = getmaprenderdata();
const MapRenderData data = getmaprenderdata();
if (game.useteleporter)
{

View file

@ -2889,7 +2889,6 @@ void scriptclass::startgamemode( int t )
map.gotoroom(game.saverx, game.savery);
map.initmapdata();
cl.generatecustomminimap();
map.customshowmm = true;