From b0564cea9b31b1078fd4f08992dfacaf97e911ae Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 30 May 2005 20:44:11 +0000 Subject: Fixed players not always appearing to sit when they are in fact sitting. --- src/game.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index f84775b7..4f49df8d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -668,11 +668,11 @@ void do_parse() being->speed = 150; } being->job = RFIFOW(14); + being->setHairStyle(RFIFOW(16)); + being->setHairColor(RFIFOW(28)); being->x = get_x(RFIFOP(46)); being->y = get_y(RFIFOP(46)); being->direction = get_direction(RFIFOP(46)); - being->setHairColor(RFIFOW(28)); - being->setHairStyle(RFIFOW(16)); add_node(being); } else { @@ -717,15 +717,19 @@ void do_parse() add_node(being); } + being->speed = RFIFOW(6); being->job = RFIFOW(14); + being->setHairStyle(RFIFOW(16)); + being->setHairColor(RFIFOW(28)); being->x = get_x(RFIFOP(46)); being->y = get_y(RFIFOP(46)); being->direction = get_direction(RFIFOP(46)); being->walk_time = tick_time; being->frame = 0; - being->speed = RFIFOW(6); - being->setHairColor(RFIFOW(28)); - being->setHairStyle(RFIFOW(16)); + + if (RFIFOB(51) == 2) { + being->action = SIT; + } break; case SMSG_MOVE_BEING: -- cgit v1.2.3-70-g09d2