summaryrefslogtreecommitdiff
path: root/games/sl/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'games/sl/patches/patch-aa')
-rw-r--r--games/sl/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/games/sl/patches/patch-aa b/games/sl/patches/patch-aa
new file mode 100644
index 00000000000..4dd66af7dae
--- /dev/null
+++ b/games/sl/patches/patch-aa
@@ -0,0 +1,31 @@
+$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]);