mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Move temp variable off of editorclass
Again, basically no reason for it to exist on the class itself. The usage of the variable was replaced with temp2 instead of temp because there was already a temp variable in the function it was used in.
This commit is contained in:
parent
524a535c62
commit
6b23244366
2 changed files with 4 additions and 5 deletions
|
@ -2709,7 +2709,7 @@ void editorrender()
|
||||||
//Draw entities
|
//Draw entities
|
||||||
obj.customplatformtile=game.customcol*12;
|
obj.customplatformtile=game.customcol*12;
|
||||||
|
|
||||||
ed.temp=edentat(ed.tilex+ (ed.levx*40),ed.tiley+ (ed.levy*30));
|
int temp2=edentat(ed.tilex+ (ed.levx*40),ed.tiley+ (ed.levy*30));
|
||||||
|
|
||||||
// Draw entities backward to remain accurate with ingame
|
// Draw entities backward to remain accurate with ingame
|
||||||
for (int i = edentity.size() - 1; i >= 0; i--)
|
for (int i = edentity.size() - 1; i >= 0; i--)
|
||||||
|
@ -2878,7 +2878,7 @@ void editorrender()
|
||||||
case 13://Warp tokens
|
case 13://Warp tokens
|
||||||
graphics.drawsprite((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),18+(ed.entframe%2),196,196,196);
|
graphics.drawsprite((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),18+(ed.entframe%2),196,196,196);
|
||||||
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),16,16,graphics.getRGB(164,164,255));
|
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),16,16,graphics.getRGB(164,164,255));
|
||||||
if(ed.temp==i)
|
if(temp2==i)
|
||||||
{
|
{
|
||||||
graphics.bprint((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)-8,
|
graphics.bprint((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)-8,
|
||||||
"("+help.String(((edentity[i].p1-int(edentity[i].p1%40))/40)+1)+","+help.String(((edentity[i].p2-int(edentity[i].p2%30))/30)+1)+")",210,210,255);
|
"("+help.String(((edentity[i].p1-int(edentity[i].p1%40))/40)+1)+","+help.String(((edentity[i].p2-int(edentity[i].p2%30))/30)+1)+")",210,210,255);
|
||||||
|
@ -2926,7 +2926,7 @@ void editorrender()
|
||||||
case 18: //Terminals
|
case 18: //Terminals
|
||||||
graphics.drawsprite((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)+8,17,96,96,96);
|
graphics.drawsprite((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)+8,17,96,96,96);
|
||||||
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),16,24,graphics.getRGB(164,164,164));
|
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),16,24,graphics.getRGB(164,164,164));
|
||||||
if(ed.temp==i)
|
if(temp2==i)
|
||||||
{
|
{
|
||||||
graphics.bprint((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)-8,edentity[i].scriptname,210,210,255);
|
graphics.bprint((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)-8,edentity[i].scriptname,210,210,255);
|
||||||
}
|
}
|
||||||
|
@ -2934,7 +2934,7 @@ void editorrender()
|
||||||
case 19: //Script Triggers
|
case 19: //Script Triggers
|
||||||
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),edentity[i].p1*8,edentity[i].p2*8,graphics.getRGB(255,164,255));
|
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),edentity[i].p1*8,edentity[i].p2*8,graphics.getRGB(255,164,255));
|
||||||
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),8,8,graphics.getRGB(255,255,255));
|
fillboxabs((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8),8,8,graphics.getRGB(255,255,255));
|
||||||
if(ed.temp==i)
|
if(temp2==i)
|
||||||
{
|
{
|
||||||
graphics.bprint((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)-8,edentity[i].scriptname,210,210,255);
|
graphics.bprint((edentity[i].x*8)- (ed.levx*40*8),(edentity[i].y*8)- (ed.levy*30*8)-8,edentity[i].scriptname,210,210,255);
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,7 +196,6 @@ class editorclass{
|
||||||
edlevelclass level[400]; //Maxwidth*maxheight
|
edlevelclass level[400]; //Maxwidth*maxheight
|
||||||
int kludgewarpdir[400]; //Also maxwidth*maxheight
|
int kludgewarpdir[400]; //Also maxwidth*maxheight
|
||||||
|
|
||||||
int temp;
|
|
||||||
int notedelay;
|
int notedelay;
|
||||||
int oldnotedelay;
|
int oldnotedelay;
|
||||||
std::string note;
|
std::string note;
|
||||||
|
|
Loading…
Reference in a new issue