1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Fix two places with map.oldypos not being assigned

These places didn't assign map.oldypos when they assigned map.ypos. This
could have only resulted in visual glitches, but it's good to be
consistent and proactively fix these.
This commit is contained in:
Misa 2021-04-22 20:27:45 -07:00 committed by Ethan Lee
parent 6e9fc8e923
commit 7c55b449e0
2 changed files with 2 additions and 0 deletions

View File

@ -2705,6 +2705,7 @@ void scriptclass::startgamemode( int t )
if (INBOUNDS_VEC(i, obj.entities))
{
map.ypos = obj.entities[i].yp - 120;
map.oldypos = map.ypos;
}
graphics.towerbg.bypos = map.ypos / 2;
map.cameramode = 0;

View File

@ -494,6 +494,7 @@ int main(int argc, char *argv[])
map.nexttowercolour();
map.ypos = (700-29) * 8;
map.oldypos = map.ypos;
graphics.towerbg.bypos = map.ypos / 2;
graphics.titlebg.bypos = map.ypos / 2;