src/Rope.cc
changeset 408 e6cfc44266af
parent 377 01d3c340b372
child 412 721c60072091
equal deleted inserted replaced
407:443f6f7abcfb 408:e6cfc44266af
   191         // if player's pivot is some other player, then don't re-check the terrain
   191         // if player's pivot is some other player, then don't re-check the terrain
   192         if (player.getPivot() != this)
   192         if (player.getPivot() != this)
   193             return;
   193             return;
   194 
   194 
   195         // If there's no ground on the pivot point anymore, release the rope
   195         // If there's no ground on the pivot point anymore, release the rope
   196         if (!world.collides(position)) { 
   196         if (!world.terrain.collides(position)) { 
   197             // XXX: move to some new method
   197             // XXX: move to some new method
   198             state = ROPE_FLYING;
   198             state = ROPE_FLYING;
   199             length = ROPE_LENGTH;
   199             length = ROPE_LENGTH;
   200             inAir = true;
   200             inAir = true;
   201             player.setPivot(NULL);
   201             player.setPivot(NULL);