mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-05-13 20:21:25 -05:00
Compare commits
4 Commits
5f81c35677
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0fdaf30ab | ||
|
|
8062f6e3fa | ||
|
|
7c3cf0b1bd | ||
|
|
52ddbbc174 |
@@ -179,6 +179,9 @@ function GameMode:update(inputs, ruleset)
|
|||||||
if self.game_over or self.completed then
|
if self.game_over or self.completed then
|
||||||
if self.save_replay and self.game_over_frames == 0 then
|
if self.save_replay and self.game_over_frames == 0 then
|
||||||
self:saveReplay()
|
self:saveReplay()
|
||||||
|
|
||||||
|
-- ensure replays are only saved once per game, incase self.game_over_frames == 0 for longer than one frame
|
||||||
|
self.save_replay = false
|
||||||
end
|
end
|
||||||
self.game_over_frames = self.game_over_frames + 1
|
self.game_over_frames = self.game_over_frames + 1
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ function SRS:onPieceMove(piece, grid)
|
|||||||
if piece.manipulations >= SRS.MANIPULATIONS_MAX then
|
if piece.manipulations >= SRS.MANIPULATIONS_MAX then
|
||||||
piece.locked = true
|
piece.locked = true
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
piece.locked = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user