mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix checkpoint starts in editor
This commit is contained in:
@@ -4711,19 +4711,12 @@ void editorinput()
|
|||||||
//Checkpoint spawn
|
//Checkpoint spawn
|
||||||
int tx=(edentity[testeditor].x-(edentity[testeditor].x%40))/40;
|
int tx=(edentity[testeditor].x-(edentity[testeditor].x%40))/40;
|
||||||
int ty=(edentity[testeditor].y-(edentity[testeditor].y%30))/30;
|
int ty=(edentity[testeditor].y-(edentity[testeditor].y%30))/30;
|
||||||
game.edsavex = (edentity[testeditor].x%40)*8;
|
game.edsavex = (edentity[testeditor].x%40)*8 - 4;
|
||||||
game.edsavey = (edentity[testeditor].y%30)*8;
|
game.edsavey = (edentity[testeditor].y%30)*8;
|
||||||
game.edsaverx = 100+tx;
|
game.edsaverx = 100+tx;
|
||||||
game.edsavery = 100+ty;
|
game.edsavery = 100+ty;
|
||||||
game.edsavegc = edentity[testeditor].p1;
|
game.edsavegc = 1-edentity[testeditor].p1;
|
||||||
if(game.edsavegc==0)
|
game.edsavey--;
|
||||||
{
|
|
||||||
game.edsavey--;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
game.edsavey-=8;
|
|
||||||
}
|
|
||||||
game.edsavedir = 0;
|
game.edsavedir = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -4731,7 +4724,7 @@ void editorinput()
|
|||||||
//Start point spawn
|
//Start point spawn
|
||||||
int tx=(edentity[testeditor].x-(edentity[testeditor].x%40))/40;
|
int tx=(edentity[testeditor].x-(edentity[testeditor].x%40))/40;
|
||||||
int ty=(edentity[testeditor].y-(edentity[testeditor].y%30))/30;
|
int ty=(edentity[testeditor].y-(edentity[testeditor].y%30))/30;
|
||||||
game.edsavex = ((edentity[testeditor].x%40)*8)-4;
|
game.edsavex = (edentity[testeditor].x%40)*8 - 4;
|
||||||
game.edsavey = (edentity[testeditor].y%30)*8;
|
game.edsavey = (edentity[testeditor].y%30)*8;
|
||||||
game.edsaverx = 100+tx;
|
game.edsaverx = 100+tx;
|
||||||
game.edsavery = 100+ty;
|
game.edsavery = 100+ty;
|
||||||
|
|||||||
Reference in New Issue
Block a user