void M_ScanSaves (void)
{
- size_t i, j, len;
+ int i, j, len;
char name[MAX_OSPATH];
char buf[SAVEGAME_COMMENT_LENGTH + 256];
const char *t;
typedef struct
{
- int gameid;
+ gamemode_t gameid;
gamelevels_t *notregistered;
gamelevels_t *registered;
}
void MP_Error(const char *format, ...)
{
+ static qboolean processingError = false;
char errorstring[4096];
va_list argptr;
va_end (argptr);
Con_Printf( "Menu_Error: %s\n", errorstring );
- PRVM_Crash();
+ if( !processingError ) {
+ processingError = true;
+ PRVM_Crash();
+ processingError = false;
+ } else {
+ Con_Printf( "Menu_Error: Recursive call to MP_Error (from PRVM_Crash)!\n" );
+ }
// fall back to the normal menu