Skip to content

Commit 671dbbd

Browse files
author
Linus Köster
committed
Revert "removed the last defensive brackets"
This reverts commit 386f09b.
1 parent 386f09b commit 671dbbd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

audio/SIYwinSound.wav

28.5 KB
Binary file not shown.

src/SIY-Game/SIYBlock.class.st

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,15 @@ SIYBlock >> gameBoard [
344344

345345
{
346346
#category : #appearance,
347-
#'squeak_changestamp' : 'KD 2/5/2024 10:06'
347+
#'squeak_changestamp' : 'LK 2/4/2024 19:47'
348348
}
349349
SIYBlock >> getTextureForDirection: aPoint [
350350

351351
aPoint caseOf: {
352352
[1@0] -> [^ self blockTextureRight].
353353
[-1@0] -> [^ self blockTextureLeft].
354354
[0@1] -> [^ self blockTextureDown].
355-
[0@ -1] -> [^ self blockTextureUp]
355+
[0@(-1)] -> [^ self blockTextureUp]
356356
} otherwise: [^ self blockTexture]
357357
]
358358

@@ -576,11 +576,11 @@ SIYBlock >> move: aDirection pushedBy: aBlock [
576576

577577
{
578578
#category : #'neighbour sensing',
579-
#'squeak_changestamp' : 'KD 2/5/2024 10:06'
579+
#'squeak_changestamp' : 'LK 2/4/2024 19:50'
580580
}
581581
SIYBlock >> neighborsAbove [
582582

583-
^ self gameBoard getBlocksOnTile: 0@ -1 + self coords
583+
^ self gameBoard getBlocksOnTile: 0@(-1) + self coords
584584
]
585585

586586
{

0 commit comments

Comments
 (0)