Commit c36ab53b35e336e21fce5943d7d609ea02f8cea9

  • avatar
  • Bertram <bertram @ceg…el.net>
  • Wed Oct 21 23:55:59 CEST 2009
  • Tree SHA1: c1daf14
  • Parent SHA1: f5f351c (Made the skip updates (-u) and set custom data path (-d) startup options work again, even separately.)
  • raw diff | raw patch
Commencing the keyboard walking fine-tune.

Also, fixed sit to stand action change.
  
192192 it++;
193193 }
194194
195 // Remove the last path node, as it's more clever to go to mDest instead.
196 // It also permit to avoid zigzag at the end of the path,
197 // especially with mouse.
198 thisPath.pop_back();
199 thisPath.push_back(Position(mDest.x, mDest.y));
200
195201 setPath(thisPath);
196202}
197203#endif // TMWSERV_SUPPORT
540540 const float nominalLength = dir.length();
541541
542542 // When we've not reached our destination, move to it.
543 if (nominalLength > 0.0f && mWalkSpeed > 0.0f)
543 if (nominalLength > 1.0f && mWalkSpeed > 0.0f)
544544 {
545545
546546 // The private mWalkSpeed member is the speed in tiles per second.
  
381381
382382void PlayerHandler::changeAction(Being::Action action)
383383{
384 if (action == Being::SIT)
385 player_node->setAction(action);
384 player_node->setAction(action);
386385
387386 MessageOut msg(PGMSG_ACTION_CHANGE);
388387 msg.writeInt8(action);