From 90e197811bfa56a8f53ca92015bf750acc87e759 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sat, 12 Oct 2013 04:16:59 +0000 Subject: Build on 10.0 --- games/xrobots/files/patch-actions.c | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 games/xrobots/files/patch-actions.c (limited to 'games/xrobots/files/patch-actions.c') diff --git a/games/xrobots/files/patch-actions.c b/games/xrobots/files/patch-actions.c new file mode 100644 index 000000000000..0b9bf78e407d --- /dev/null +++ b/games/xrobots/files/patch-actions.c @@ -0,0 +1,51 @@ +--- actions.c.orig 2013-10-13 01:20:18.000000000 +1100 ++++ actions.c 2013-10-13 01:26:21.000000000 +1100 +@@ -66,6 +66,7 @@ + Cardinal *num_params; + { + /* do nothing */ ++ return NULL; + } + + +@@ -169,11 +170,11 @@ + int diff_x, diff_y; + int num_wasted; + +- if(!game_active) return; ++ if(!game_active) return NULL; + + if(get_next_position(&diff_x, &diff_y, event->x, event->y, + params, *num_params)) +- return; ++ return NULL; + + last_human_x = human_x; + last_human_y = human_y; +@@ -210,14 +211,14 @@ + int diff_x, diff_y; + int num_wasted; + +- if(!game_active) return; ++ if(!game_active) return NULL; + + if(get_next_position(&diff_x, &diff_y, event->x, event->y, + params, *num_params)) +- return; ++ return NULL; + + if(! can_go(human_x+diff_x,human_y+diff_y) ) +- return; ++ return NULL; + + while( can_go(human_x+diff_x,human_y+diff_y) ) { + last_human_x = human_x; +@@ -261,7 +262,7 @@ + int tmp_human_x, tmp_human_y; + int num_wasted; + +- if(!game_active) return; ++ if(!game_active) return NULL; + + while(direction = determine_direction(event->x,event->y)) { + if(direction == STILL) break; -- cgit v1.2.3