Free Hero Mesh

Check-in [870cc89301]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Change the command code of the "select level" command from '^L' to 'go' since a ^ command is not helpful for this situation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 870cc89301c0b7bf9ea6fed1063b243958cea3ef
User & Date: user on 2020-12-15 02:26:58
Other Links: manifest | tags
Context
2020-12-15
03:23
Add some mode-independent binding commands check-in: df17ecd054 user: user tags: trunk
02:26
Change the command code of the "select level" command from '^L' to 'go' since a ^ command is not helpful for this situation check-in: 870cc89301 user: user tags: trunk
02:21
Implement Level, MoveNumber, rot, and -rot instructions check-in: 10053de140 user: user tags: trunk
Changes

Modified edit.c from [59f741fea8] to [07a6400988].

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;

Modified game.c from [0ea21b73a0] to [39fcdeb76e].

337
338
339
340
341
342
343
344
345
346
347
348
349
350
351



352
353
354
355
356
357
358
337
338
339
340
341
342
343



344
345
346
347
348
349
350
351
352
353
354
355
356
357
358







-
-
-





+
+
+








static int game_command(int prev,int cmd,int number,int argc,sqlite3_stmt*args,void*aux) {
  switch(cmd) {
    case '\' ': // Play a move
      return number;
    case '^E': // Edit
      return -2;
    case '^L': // Select level
      begin_level(number);
      return 1;
    case '^Q': // Quit
      return -1;
    case '^o': // List objects
      list_objects_at(number-65);
      return prev;
    case 'go': // Select level
      begin_level(number);
      return 1;
    default:
      return prev;
  }
}

static void set_caption(void) {
  const char*r;