mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Fix #380
Achievements could be unlocked in custom levels/make and play, so this adds the wrapper function `game.unlockAchievement` which calls `NETWORK_unlockAchievement` if `map.custommode` is false. Also, this function and `Game::unlocknum` have both been `ifdef`ed to be empty if MAKEANDPLAY is defined.
This commit is contained in:
@@ -683,7 +683,7 @@ void gamelogic()
|
||||
game.swnrank = 1;
|
||||
if (game.swnbestrank < 1)
|
||||
{
|
||||
NETWORK_unlockAchievement("vvvvvvsupgrav5");
|
||||
game.unlockAchievement("vvvvvvsupgrav5");
|
||||
game.swnbestrank = 1;
|
||||
game.swnmessage = 2+30;
|
||||
music.playef(26);
|
||||
@@ -694,7 +694,7 @@ void gamelogic()
|
||||
game.swnrank = 2;
|
||||
if (game.swnbestrank < 2)
|
||||
{
|
||||
NETWORK_unlockAchievement("vvvvvvsupgrav10");
|
||||
game.unlockAchievement("vvvvvvsupgrav10");
|
||||
game.swnbestrank = 2;
|
||||
game.swnmessage = 2+30;
|
||||
music.playef(26);
|
||||
@@ -705,7 +705,7 @@ void gamelogic()
|
||||
game.swnrank = 3;
|
||||
if (game.swnbestrank < 3)
|
||||
{
|
||||
NETWORK_unlockAchievement("vvvvvvsupgrav15");
|
||||
game.unlockAchievement("vvvvvvsupgrav15");
|
||||
game.swnbestrank = 3;
|
||||
game.swnmessage = 2+30;
|
||||
music.playef(26);
|
||||
@@ -716,7 +716,7 @@ void gamelogic()
|
||||
game.swnrank = 4;
|
||||
if (game.swnbestrank < 4)
|
||||
{
|
||||
NETWORK_unlockAchievement("vvvvvvsupgrav20");
|
||||
game.unlockAchievement("vvvvvvsupgrav20");
|
||||
game.swnbestrank = 4;
|
||||
game.swnmessage = 2+30;
|
||||
music.playef(26);
|
||||
@@ -727,7 +727,7 @@ void gamelogic()
|
||||
game.swnrank = 5;
|
||||
if (game.swnbestrank < 5)
|
||||
{
|
||||
NETWORK_unlockAchievement("vvvvvvsupgrav30");
|
||||
game.unlockAchievement("vvvvvvsupgrav30");
|
||||
game.swnbestrank = 5;
|
||||
game.swnmessage = 2+30;
|
||||
music.playef(26);
|
||||
@@ -738,7 +738,7 @@ void gamelogic()
|
||||
game.swnrank = 6;
|
||||
if (game.swnbestrank < 6)
|
||||
{
|
||||
NETWORK_unlockAchievement("vvvvvvsupgrav60");
|
||||
game.unlockAchievement("vvvvvvsupgrav60");
|
||||
game.swnbestrank = 6;
|
||||
game.swnmessage = 2+30;
|
||||
music.playef(26);
|
||||
|
||||
Reference in New Issue
Block a user