Commit 8f67c17f authored by Colin Tuckley's avatar Colin Tuckley Committed by Andreas Tille

Import Debian changes 2.6.4-3

lbreakout2 (2.6.4-3) unstable; urgency=medium

  * Fix Mayhem Crash Bug (Closes: #716544)
parent a1dfa3c0
lbreakout2 (2.6.4-3) unstable; urgency=medium
* Fix Mayhem Crash Bug (Closes: #716544)
-- Colin Tuckley <colint@debian.org> Fri, 31 Jan 2014 19:20:25 +0000
lbreakout2 (2.6.4-2) unstable; urgency=low
* Update Standards-Version to 3.9.5 (No changes required)
......
Description: Fix Mayhem crash Bug #716544
--- lbreakout2-2.6.4.orig/server/server.c
+++ lbreakout2-2.6.4/server/server.c
@@ -677,9 +677,12 @@ static void handle_command( ServerUser *
}
else
if ( !strcmp( name, _("fps") ) ) {
- server_fps = val;
- server_frame_delay = 1000/val;
- sprintf( buf, _("fps: set to %i"), server_fps );
+ if (val > 0) {
+ server_fps = val;
+ server_frame_delay = 1000/val;
+
+ sprintf( buf, _("fps: set to %i"), server_fps );
+ }
msg_begin_writing( msgbuf, &msglen, MAX_MSG_SIZE );
msg_write_int8( MSG_SET_COMM_DELAY );
@@ -1016,7 +1019,7 @@ static void display_help()
/* Parse the command line. */
static void parse_args( int argc, char **argv )
{
- int i, len;
+ int i, len, isf;
FILE *file;
for ( i = 0; i < argc; i++ ) {
@@ -1028,8 +1031,11 @@ static void parse_args( int argc, char *
user_limit = atoi( argv[i + 1] );
if ( !strcmp( "-f", argv[i] ) )
if ( argv[i + 1] ) {
- server_fps = atoi(argv[i + 1]);
- server_frame_delay = 1000/server_fps;
+ isf = atoi(argv[i + 1]);
+ if (isf > 0) {
+ server_fps = isf;
+ server_frame_delay = 1000/server_fps;
+ }
}
if ( !strcmp( "-D", argv[i] ) )
if ( argv[i + 1] )
10-ball-turbo-key-pref.patch
mayhem-crash-fix
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment