aboutsummaryrefslogtreecommitdiff
path: root/games/asc/files/patch-source::controls.cpp
blob: a738b3dbf60a5f036c1170dcc8ab486021d3e2a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

$FreeBSD$

--- source/controls.cpp	2001/02/17 15:52:35	1.1
+++ source/controls.cpp	2001/02/17 15:54:41
@@ -3039,7 +3039,7 @@
         displaymessage("no human players found !", 1 );
         delete actmap;
         actmap = NULL;
-        throw NoMapLoaded();
+        goto except1;
      }
 
    } while ( actmap->player[actmap->actplayer].stat != ps_human ); /* enddo */
@@ -3048,6 +3048,9 @@
 
    if (bb)
      cursor.display();
+
+except1:
+   throw NoMapLoaded();
 }
 
 void initNetworkGame ( void )