summaryrefslogtreecommitdiff
path: root/games/sl/patches/patch-aa
blob: 4dd66af7dae5dd1ccf4f1e3392b0423bc1f12ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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]);