Free Hero Mesh

Diff
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

Differences From Artifact [39a9a6de05]:

To Artifact [adfd260a0a]:


113
114
115
116
117
118
119



120
121
122
123

124
125
126
127
128
129
130
      case SDL_QUIT:
        exit(0);
        break;
      case SDL_MOUSEBUTTONDOWN:
        if(ev.button.x<left_margin) {
          
          break;



        }
        // fallthrough
      case SDL_KEYDOWN:
        i=exec_key_binding(&ev,0,0,0,game_command,0);

        if(i==-1) exit(0);
        if(i==-2) {
          main_options['e']=1;
          return;
        }
        redraw_game();
        break;







>
>
>

<


>







113
114
115
116
117
118
119
120
121
122
123

124
125
126
127
128
129
130
131
132
133
      case SDL_QUIT:
        exit(0);
        break;
      case SDL_MOUSEBUTTONDOWN:
        if(ev.button.x<left_margin) {
          
          break;
        } else {
          i=exec_key_binding(&ev,0,(ev.button.x-left_margin)/picture_size+1,ev.button.y/picture_size+1,game_command,0);
          goto command;
        }

      case SDL_KEYDOWN:
        i=exec_key_binding(&ev,0,0,0,game_command,0);
      command:
        if(i==-1) exit(0);
        if(i==-2) {
          main_options['e']=1;
          return;
        }
        redraw_game();
        break;