Make use of new Victory and Lost menus

This commit is contained in:
ariclone 2000-04-16 19:40:25 +00:00
parent f7aca4fde0
commit 613906649f

View file

@ -34,6 +34,7 @@
#include "interface.h"
#include "unit.h"
#include "menus.h"
#include "network.h"
/*----------------------------------------------------------------------------
@ -70,12 +71,14 @@ global void CheckGoals(void)
NetworkQuit();
if( ThisPlayer->NumFoodUnits+ThisPlayer->NumBuildings ) {
fprintf(stderr,"You have won!\n");
SetStatusLine("You have won!");
// SetStatusLine("You have won!");
GamePaused=1;
ProcessMenu(MENU_VICTORY, 1);
} else {
fprintf(stderr,"You have lost!\n");
SetStatusLine("You have lost!");
// SetStatusLine("You have lost!");
GamePaused=1;
ProcessMenu(MENU_LOST, 1);
}
}
}