--- deliantra/server/include/client.h 2007/01/07 02:39:14 1.24 +++ deliantra/server/include/client.h 2007/01/08 18:18:35 1.25 @@ -178,7 +178,19 @@ char *ACC (RW, host); /* Which host it is connected from (ip address) */ uint8 ACC (RW, state); /* Input state of the player (name, password, etc */ - uint8 ACC (RW, password_fails); /* how many times the player has failed to give the right password */ + + sint8 ACC (RW, last_level); /* Last level we sent to client */ + uint16 ACC (RW, last_flags); /* fire/run on flags for last tick */ + float ACC (RW, last_weapon_sp); /* if diff than weapon_sp, update client */ + sint32 ACC (RW, last_weight); /* Last weight as sent to client; -1 means do not send weight */ + sint32 ACC (RW, last_weight_limit); /* Last weight limit transmitted to client */ + uint32 ACC (RW, last_path_attuned); /* Last spell attunment sent to client */ + uint32 ACC (RW, last_path_repelled); /* Last spell repelled sent to client */ + uint32 ACC (RW, last_path_denied); /* Last spell denied sent to client */ + living ACC (RO, last_stats); /* Last stats as sent to client */ + float ACC (RW, last_speed); /* Last speed as sent to client */ + sint16 ACC (RW, last_resist[NROFATTACKS]);/* last resist values sent to client */ + sint64 ACC (RW, last_skill_exp[NUM_SKILLS]);/* shadow register. if != exp. obj update client */ bool ACC (RW, afk); /* player is afk */ bool ACC (RW, facecache); /* If true, client is caching images */ @@ -239,6 +251,8 @@ MTH bool handle_command (); // resets movement state MTH void reset_state (); + // resets variable data used to send stat diffs + MTH void reset_stats (); MTH bool handle_packet (); int next_packet (); // returns length of packet or 0