diff options
| author | tslil <tslil@posteo.de> | 2021-01-15 16:16:52 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-15 16:16:52 -0500 |
| commit | 2f6b5d5ba8e1ffb627bb146238b1566ec53241a4 (patch) | |
| tree | b735539db0e8ad18e9a1747fd45da9ba6f9969ee /include/tak.c | |
| parent | 9377cf833ba6b46b3fbb5cdfd22a4cf918e92837 (diff) | |
Changed function back to macro
Diffstat (limited to 'include/tak.c')
| -rw-r--r-- | include/tak.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
