freebsd-ports/games/asc/files/patch-source::basestrm.cpp
Maxim Sobolev 9937c7f036 Add Advanced Strategic Command 1.3.8, a turn based, multiplayer strategic
game with a very nice and professionally-looking graphics.
2001-02-17 21:51:31 +00:00

41 lines
768 B
C++

$FreeBSD$
--- source/basestrm.cpp 2001/02/17 15:08:39 1.1
+++ source/basestrm.cpp 2001/02/17 15:08:54
@@ -895,7 +892,7 @@
while (actpos2 < size) {
if (datasize == 0)
if ( excpt ) {
- throw treadafterend ( getDeviceName() );
+ goto except1;
}
else
return actpos2;
@@ -915,6 +912,9 @@
}
return actpos2;
+
+except1:
+ throw treadafterend ( getDeviceName() );
}
@@ -945,10 +945,14 @@
}
else
if (actmempos > memsize)
- throw tinternalerror ( __FILE__, __LINE__ );
+ goto except1;
actpos2 += s;
}
+ return;
+
+except1:
+ throw tinternalerror ( __FILE__, __LINE__ );
}