1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Merge pull request #776 from InfoTeddy/general-bug-fixes-6

Explore all rooms when entering Secret Lab
This commit is contained in:
Terry Cavanagh 2021-06-12 22:33:37 +10:30 committed by GitHub
commit b07d92ac44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1515,6 +1515,7 @@ void scriptclass::run(void)
{
game.unlocknum(8);
game.insecretlab = true;
SDL_memset(map.explored, true, sizeof(map.explored));
}
else if (words[0] == "leavesecretlab")
{
@ -2851,14 +2852,9 @@ void scriptclass::startgamemode( int t )
game.jumpheld = true;
//Secret lab, so reveal the map, give them all 20 trinkets
for (int j = 0; j < 20; j++)
{
obj.collect[j] = true;
for (i = 0; i < 20; i++)
{
map.setexplored(i, j, true);
}
}
SDL_memset(obj.collect, true, sizeof(obj.collect[0]) * 20);
SDL_memset(map.explored, true, sizeof(map.explored));
i = 400; /* previously a nested for-loop set this */
game.insecretlab = true;
map.showteleporters = true;