630fcf11fc
NetBSD patch supplied by itohy.
31 lines
711 B
Text
31 lines
711 B
Text
$NetBSD: patch-aa,v 1.1 2000/06/06 03:10:21 minoura Exp $
|
|
|
|
--- sl.c.orig Mon Jun 5 12:27:10 2000
|
|
+++ sl.c Mon Jun 5 22:15:07 2000
|
|
@@ -232,7 +232,7 @@ int add_cross(int p)
|
|
}
|
|
++tt;
|
|
|
|
- return 0;
|
|
+ return OK;
|
|
}
|
|
|
|
|
|
@@ -634,6 +634,8 @@ int add_smoke(int y, int x)
|
|
2, 2, 2, 3, 3, 3 };
|
|
int i;
|
|
|
|
+ if (sum >= 1000)
|
|
+ return 0;
|
|
if (x % 4 == 0) {
|
|
for (i = 0; i < sum; ++i) {
|
|
my_mvaddstr(S[i].y, S[i].x, Eraser[S[i].ptrn]);
|
|
@@ -679,6 +681,8 @@ int add_smoke_r(int y, int x)
|
|
2, 2, 2, 3, 3, 3 };
|
|
int i;
|
|
|
|
+ if (sum >= 1000)
|
|
+ return 0;
|
|
if (x % 4 == 0) {
|
|
for (i = 0; i < sum; ++i) {
|
|
my_mvaddstr_r(S[i].y, S[i].x, Eraser[S[i].ptrn]);
|