Fixed a bug making level 1 impossible to complete in certain situations.

This commit is contained in:
Sakse Dalum 2012-08-12 21:11:15 +02:00
parent c04deececf
commit d192510814
1 changed files with 7 additions and 5 deletions

View File

@ -339,7 +339,8 @@ class Level1(level.Level):
task4_pos[1] - 48 * 3,
[self.complete_task, b.fall],
self.imgs['hole'], [b],
signal=[0, 3]))
signal=[0, 3],
toggling=True))
# Moat
self.add_tile(task4_pos[0] - 64 * 2, task4_pos[1] - 48 * 4,
@ -503,6 +504,7 @@ class Level1(level.Level):
self.imgs['indoor1'],
[self.player]))
if random.randint(0, 1):
for i in range(3):
self.objects.append(
CompletionBlock(self, 64 * (door_x - 5 + i), 48 * 4,