diff options
Diffstat (limited to 'apps/plugins/maze.c')
-rw-r--r-- | apps/plugins/maze.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c index b5d4f08e9f..2948eb2aec 100644 --- a/apps/plugins/maze.c +++ b/apps/plugins/maze.c | |||
@@ -112,7 +112,7 @@ void coord_stack_push(struct coord_stack* stack, int x, int y) | |||
112 | } | 112 | } |
113 | 113 | ||
114 | void coord_stack_get(struct coord_stack* stack, int index, int* x, int* y) | 114 | void coord_stack_get(struct coord_stack* stack, int index, int* x, int* y) |
115 | { | 115 | { |
116 | *y = stack->data[index]; | 116 | *y = stack->data[index]; |
117 | *y &= 0xff; | 117 | *y &= 0xff; |
118 | *x = (stack->data[index])>>8; | 118 | *x = (stack->data[index])>>8; |
@@ -390,7 +390,8 @@ void maze_solve(struct maze* maze) | |||
390 | maze->solved = ~(maze->solved); | 390 | maze->solved = ~(maze->solved); |
391 | 391 | ||
392 | /* copy maze for solving */ | 392 | /* copy maze for solving */ |
393 | rb->memcpy(solved_maze, maze->maze, (MAZE_HEIGHT*MAZE_WIDTH*sizeof(maze->maze[0][0]))); | 393 | rb->memcpy(solved_maze, maze->maze, |
394 | (MAZE_HEIGHT*MAZE_WIDTH*sizeof(maze->maze[0][0]))); | ||
394 | 395 | ||
395 | 396 | ||
396 | /* remove some borders and walls on start and end point */ | 397 | /* remove some borders and walls on start and end point */ |