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:
parent
c16fe04519
commit
cbfef2eb53
2 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,8 @@ static int tr;
|
||||||
static int tg;
|
static int tg;
|
||||||
static int tb;
|
static int tb;
|
||||||
|
|
||||||
struct MapRenderData {
|
struct MapRenderData
|
||||||
|
{
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
int zoom;
|
int zoom;
|
||||||
|
@ -2096,7 +2097,7 @@ static void rendermap(void)
|
||||||
|
|
||||||
static void rendermapfog(void)
|
static void rendermapfog(void)
|
||||||
{
|
{
|
||||||
MapRenderData data = getmaprenderdata();
|
const MapRenderData data = getmaprenderdata();
|
||||||
|
|
||||||
for (int j = 0; j < data.height; j++)
|
for (int j = 0; j < data.height; j++)
|
||||||
{
|
{
|
||||||
|
@ -2121,7 +2122,7 @@ static void rendermaplegend(void)
|
||||||
{
|
{
|
||||||
// Draw the map legend, aka teleports/targets/trinkets
|
// Draw the map legend, aka teleports/targets/trinkets
|
||||||
|
|
||||||
MapRenderData data = getmaprenderdata();
|
const MapRenderData data = getmaprenderdata();
|
||||||
|
|
||||||
const int tile_offset = graphics.flipmode ? 3 : 0;
|
const int tile_offset = graphics.flipmode ? 3 : 0;
|
||||||
|
|
||||||
|
@ -2151,7 +2152,7 @@ static void rendermaplegend(void)
|
||||||
|
|
||||||
static void rendermapcursor(const bool flashing)
|
static void rendermapcursor(const bool flashing)
|
||||||
{
|
{
|
||||||
MapRenderData data = getmaprenderdata();
|
const MapRenderData data = getmaprenderdata();
|
||||||
|
|
||||||
if (!map.custommode && game.roomx == 109)
|
if (!map.custommode && game.roomx == 109)
|
||||||
{
|
{
|
||||||
|
@ -2686,7 +2687,7 @@ void teleporterrender(void)
|
||||||
|
|
||||||
// Draw a box around the currently selected teleporter
|
// Draw a box around the currently selected teleporter
|
||||||
|
|
||||||
MapRenderData data = getmaprenderdata();
|
const MapRenderData data = getmaprenderdata();
|
||||||
|
|
||||||
if (game.useteleporter)
|
if (game.useteleporter)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2889,7 +2889,6 @@ void scriptclass::startgamemode( int t )
|
||||||
map.gotoroom(game.saverx, game.savery);
|
map.gotoroom(game.saverx, game.savery);
|
||||||
map.initmapdata();
|
map.initmapdata();
|
||||||
|
|
||||||
|
|
||||||
cl.generatecustomminimap();
|
cl.generatecustomminimap();
|
||||||
map.customshowmm = true;
|
map.customshowmm = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue