summaryrefslogtreecommitdiff
path: root/objects.go
diff options
context:
space:
mode:
Diffstat (limited to 'objects.go')
-rw-r--r--objects.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/objects.go b/objects.go
index 0bc8b62..e24e331 100644
--- a/objects.go
+++ b/objects.go
@@ -225,7 +225,9 @@ func OnCollideSpring(this, other *GameObject) bool {
}
func OnCollideSpike(this, other *GameObject) bool {
- other.game.ResetAll()
+ if other == this.game.player {
+ other.game.ResetAll()
+ }
return true
}