equal
deleted
inserted
replaced
141 } |
141 } |
142 else if (this->state == ROPE_FIXED) { |
142 else if (this->state == ROPE_FIXED) { |
143 // If there's not ground on the pivot point anymore, release the rope |
143 // If there's not ground on the pivot point anymore, release the rope |
144 if (!world.collides(position)) { |
144 if (!world.collides(position)) { |
145 this->state = ROPE_FLYING; |
145 this->state = ROPE_FLYING; |
|
146 player.handleRopeState(state); |
146 } |
147 } |
147 } |
148 } |
148 else { // ROPE_FOLDED |
149 else { // ROPE_FOLDED |
149 // Rope shouldn't be ticking if it is folded, but this can still happen |
150 // Rope shouldn't be ticking if it is folded, but this can still happen |
150 // immediately after the rope has been released |
151 // immediately after the rope has been released |