From f5df4d3710c94822a6602a3e4936287ea5d61bab Mon Sep 17 00:00:00 2001 From: tslil Date: Fri, 15 Jan 2021 16:16:52 -0500 Subject: Changed function back to macro --- include/tak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tak.c') diff --git a/include/tak.c b/include/tak.c index 657df9d..2ddb78b 100644 --- a/include/tak.c +++ b/include/tak.c @@ -126,7 +126,7 @@ try_move(const int8_t location, const enum MOVE_DIRECTION direction, // Game is over? if (won < 0xFF) return GAME_END; // Can't do this - if (steps == 0 || steps > 5) return ACT_ILLEGAL; + if (steps == 0 || steps > board_size) return ACT_ILLEGAL; // Check for stones at all const uint8_t avail = COUNT_AT(location); if (avail == 0) return ACT_ILLEGAL; -- cgit v1.3.1