Permalink
Browse files

mutant3d.c: events(): Changed movement start conditions.

  • Loading branch information...
1 parent f9dd7ab commit 6a59a1d8c2e600a114bcdaf2e14b63d15ca587df @ozkriff committed Apr 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mutant3d.c
View
@@ -510,7 +510,8 @@ void events(void){
printf("BUTTON ID:%d\n", button->id);
if(button->callback)
button->callback();
- }else{
+ }else if(unit_mode == UM_NORMAL
+ && SDL_GetMouseState(NULL, NULL) == SDL_BUTTON_LMASK){
Unit *u = unit_at(active_block_pos);
Block3 *b = block(active_block_pos);
if(!u && selected_unit && b && b->parent != D_NONE){

0 comments on commit 6a59a1d

Please sign in to comment.