src/Rope.cc
changeset 263 8c999cf4c182
parent 257 549783d71e51
child 264 215de3d4de60
equal deleted inserted replaced
262:fbc9ce4950de 263:8c999cf4c182
   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