Cube  Diff

Differences From Artifact [91778984c2]:

To Artifact [6edead03c0]:


292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
		}
	}
}

- (void)applicationWillTerminate:(OFNotification *)notification
{
	stop();
	disconnect(true);
	writecfg();
	cleangl();
	cleansound();
	cleanupserver();
	SDL_ShowCursor(1);
	SDL_Quit();
}







|







292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
		}
	}
}

- (void)applicationWillTerminate:(OFNotification *)notification
{
	stop();
	disconnect(true, false);
	writecfg();
	cleangl();
	cleansound();
	cleanupserver();
	SDL_ShowCursor(1);
	SDL_Quit();
}
353
354
355
356
357
358
359

360
361
362


363


364

365
366
367
368
369
370
371
- (void)quit
{
	writeservercfg();
	[OFApplication terminateWithStatus:0];
}
@end


void
fatal(OFString *s, OFString *o) // failure exit
{


	OFString *msg =


	    [OFString stringWithFormat:@"%@%@ (%s)\n", s, o, SDL_GetError()];


	[Cube.sharedInstance showMessage:msg];
	[OFApplication terminateWithStatus:1];
}

void
quit() // normal exit







>

|

>
>
|
>
>
|
>







353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
- (void)quit
{
	writeservercfg();
	[OFApplication terminateWithStatus:0];
}
@end

// failure exit
void
fatal(OFConstantString *s, ...)
{
	va_list args;
	va_start(args, s);
	OFMutableString *msg = [[OFMutableString alloc] initWithFormat:s
	                                                     arguments:args];
	va_end(args);

	[msg appendFormat:@" (%s)\n", SDL_GetError()];

	[Cube.sharedInstance showMessage:msg];
	[OFApplication terminateWithStatus:1];
}

void
quit() // normal exit