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 authored and Ethan Lee committed 2021-04-30 05:31:47 -04:00
1 parent 6e9fc8e923
commit 7c55b449e0
2 files changed
+2

No files matched your search

+1
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;
+1
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;