aboutsummaryrefslogtreecommitdiff
path: root/cube.c
diff options
context:
space:
mode:
Diffstat (limited to 'cube.c')
-rw-r--r--cube.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cube.c b/cube.c
index 7491565..8b82719 100644
--- a/cube.c
+++ b/cube.c
@@ -543,8 +543,8 @@ static const char *validate_params(const game_params *params, int full)
return "Unrecognised solid type";
if (solids[params->solid]->order == 4) {
- if (params->d1 <= 0 || params->d2 <= 0)
- return "Both grid dimensions must be greater than zero";
+ if (params->d1 <= 1 || params->d2 <= 1)
+ return "Both grid dimensions must be greater than one";
} else {
if (params->d1 <= 0 && params->d2 <= 0)
return "At least one grid dimension must be greater than zero";