updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / monsterz / monsterz-0.7.1-blit-crash.patch
blob52c55e571505c454e33a80cb6d6df4eb6e5ab251
1 diff -ur a/monsterz-0.7.1/monsterz.py b/monsterz-0.7.1/monsterz.py
2 --- a/monsterz-0.7.1/monsterz.py 2007-12-18 00:05:00.000000000 +0200
3 +++ b/monsterz-0.7.1/monsterz.py 2009-02-15 00:52:10.000000000 +0200
4 @@ -829,10 +829,10 @@
5 pass
6 else:
7 for x in range(4):
8 - for y, p in enumerate(alpha[x]):
9 - alpha[x][y] = p * x / 4
10 - for y, p in enumerate(alpha[406 - x - 1]):
11 - alpha[406 - x - 1][y] = p * x / 4
12 + for y in range(len(alpha[x])):
13 + alpha[x][y] = alpha[x][y] * x / 4
14 + for y in range(len(alpha[406 - x - 1])):
15 + alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 4
16 for col in alpha:
17 l = len(col)
18 for y in range(4):
19 @@ -1287,10 +1287,10 @@
20 pass
21 else:
22 for x in range(10):
23 - for y, p in enumerate(alpha[x]):
24 - alpha[x][y] = p * x / 12
25 - for y, p in enumerate(alpha[406 - x - 1]):
26 - alpha[406 - x - 1][y] = p * x / 12
27 + for y in range(len(alpha[x])):
28 + alpha[x][y] = alpha[x][y] * x / 12
29 + for y in range(len(alpha[406 - x - 1])):
30 + alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 12
31 del alpha
32 scroll.unlock()
33 system.blit(scroll, (13, 437))