diff --git a/features/stronghold.c b/features/stronghold.c index a1c1432..ad84ab3 100644 --- a/features/stronghold.c +++ b/features/stronghold.c @@ -192,6 +192,9 @@ static int addStrongholdPiece(StrongholdPieceEnv *env, int typ, int x, int y, in } q->next = p; + if (*env->n >= env->nmax){ + env->generationStopped = 1; + } return 1; }