diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-10 21:29:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-10 21:29:57 +0900 |
| commit | 3a9b0cce4a2a6d4aea3a5006c9d5e79c106f8189 (patch) | |
| tree | 5490ecbf900d8bda9e11e37029000806554e5cca /src/common | |
| parent | v4090 (diff) | |
| download | misskey-3a9b0cce4a2a6d4aea3a5006c9d5e79c106f8189.tar.gz misskey-3a9b0cce4a2a6d4aea3a5006c9d5e79c106f8189.tar.bz2 misskey-3a9b0cce4a2a6d4aea3a5006c9d5e79c106f8189.zip | |
Improve readability
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/othello/core.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/othello/core.ts b/src/common/othello/core.ts index 418b461c6f..e7e725aaf0 100644 --- a/src/common/othello/core.ts +++ b/src/common/othello/core.ts @@ -224,8 +224,8 @@ export default class Othello { // 座標が指し示す位置がボード外に出たとき if (this.opts.loopedBoard) { - if (x < 0 ) x = this.mapWidth - (-x); - if (y < 0 ) y = this.mapHeight - (-y); + if (x < 0 ) x = this.mapWidth - (-x); + if (y < 0 ) y = this.mapHeight - (-y); if (x >= this.mapWidth ) x = x - this.mapWidth; if (y >= this.mapHeight) y = y - this.mapHeight; |