341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
case '^P': // Play
return -2;
case '^Q': // Quit
return -1;
case 'go': // Select level
load_level(number);
return 1;
default:
return prev;
}
}
void run_editor(void) {
SDL_Event ev;
|
>
>
>
>
>
>
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
case '^P': // Play
return -2;
case '^Q': // Quit
return -1;
case 'go': // Select level
load_level(number);
return 1;
case 'mR': // Select MRU relative
number+=curmru;
// fall through
case 'mr': // Select MRU absolute
if(number>=0 && number<MRUCOUNT) curmru=number;
return 0;
default:
return prev;
}
}
void run_editor(void) {
SDL_Event ev;
|