From 613906649fba253ab1e3b2818a3973d79c0a1747 Mon Sep 17 00:00:00 2001
From: ariclone <>
Date: Sun, 16 Apr 2000 19:40:25 +0000
Subject: [PATCH] Make use of new Victory and Lost menus

---
 stratagus/goal.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/stratagus/goal.cpp b/stratagus/goal.cpp
index 043e87185..ad59cad0e 100644
--- a/stratagus/goal.cpp
+++ b/stratagus/goal.cpp
@@ -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);
 	}
     }
 }