Skip to content

Commit

Permalink
Revert "removed the last defensive brackets"
Browse files Browse the repository at this point in the history
This reverts commit 386f09b.
  • Loading branch information
linuskoester committed Feb 5, 2024
1 parent 386f09b commit 671dbbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified audio/SIYwinSound.wav
Binary file not shown.
8 changes: 4 additions & 4 deletions src/SIY-Game/SIYBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,15 @@ SIYBlock >> gameBoard [

{
#category : #appearance,
#'squeak_changestamp' : 'KD 2/5/2024 10:06'
#'squeak_changestamp' : 'LK 2/4/2024 19:47'
}
SIYBlock >> getTextureForDirection: aPoint [

aPoint caseOf: {
[1@0] -> [^ self blockTextureRight].
[-1@0] -> [^ self blockTextureLeft].
[0@1] -> [^ self blockTextureDown].
[0@ -1] -> [^ self blockTextureUp]
[0@(-1)] -> [^ self blockTextureUp]
} otherwise: [^ self blockTexture]
]

Expand Down Expand Up @@ -576,11 +576,11 @@ SIYBlock >> move: aDirection pushedBy: aBlock [

{
#category : #'neighbour sensing',
#'squeak_changestamp' : 'KD 2/5/2024 10:06'
#'squeak_changestamp' : 'LK 2/4/2024 19:50'
}
SIYBlock >> neighborsAbove [

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

{
Expand Down

0 comments on commit 671dbbd

Please sign in to comment.