… | |
… | |
115 | client::tick () |
115 | client::tick () |
116 | { |
116 | { |
117 | if (!pl || destroyed ()) |
117 | if (!pl || destroyed ()) |
118 | return; |
118 | return; |
119 | |
119 | |
|
|
120 | pl->dirty = true; |
|
|
121 | |
120 | /* Update the players stats once per tick. More efficient than |
122 | /* Update the players stats once per tick. More efficient than |
121 | * sending them whenever they change, and probably just as useful |
123 | * sending them whenever they change, and probably just as useful |
122 | */ |
124 | */ |
123 | esrv_update_stats (pl); |
125 | esrv_update_stats (pl); |
124 | |
126 | |
125 | #if 0 |
127 | sint32 weight = pl->ob->client_weight (); |
126 | if (last_weight != -1 && last_weight != pl->ob->client_weight ()) |
128 | |
127 | { |
129 | if (last_weight != weight) |
128 | esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); |
130 | esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); |
129 | if (last_weight != pl->ob->client_weight ()) |
|
|
130 | LOG (llevError, "esrv_update_item(UPD_WEIGHT) did not set player weight: is %lu, should be %lu\n", |
|
|
131 | (unsigned long) last_weight, pl->ob->client_weight ()); |
|
|
132 | } |
|
|
133 | #endif |
|
|
134 | |
131 | |
135 | draw_client_map (pl); |
132 | draw_client_map (pl); |
136 | |
133 | |
137 | if (update_look) |
134 | if (update_look) |
138 | esrv_draw_look (pl); |
135 | esrv_draw_look (pl); |