334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
-
-
-
+
+
+
|
}
static int editor_command(int prev,int cmd,int number,int argc,sqlite3_stmt*args,void*aux) {
switch(cmd) {
case '^c': // Select class/image
class_image_select();
return 0;
case '^L': // Select level
load_level(number);
return 1;
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;
|