--- deliantra/server/socket/request.C 2009/11/07 18:30:06 1.159 +++ deliantra/server/socket/request.C 2009/11/29 09:41:28 1.161 @@ -579,7 +579,7 @@ //TODO: schmorp thinks whatever this calculates, it makes no sense at all int time = pl->ob->has_active_speed () - ? (int) (MAX_TIME / fabs (pl->ob->speed)) + ? (int) (MAX_TIME / pl->ob->speed) : MAX_TIME * 100; /* Send confirmation of command execution now */ @@ -855,17 +855,14 @@ AddIfShort (ns->last_flags, flags, CS_STAT_FLAGS); - if (ns->sc_version < 1025) - { AddIfShort (ns->last_resist[ATNR_PHYSICAL], ob->resist[ATNR_PHYSICAL], CS_STAT_ARMOUR) } - else - for (int i = 0; i < NROFATTACKS; i++) - { - /* Skip ones we won't send */ - if (atnr_cs_stat[i] == -1) - continue; + for (int i = 0; i < NROFATTACKS; i++) + { + /* Skip ones we won't send */ + if (atnr_cs_stat[i] == -1) + continue; - AddIfShort (ns->last_resist[i], ob->resist[i], atnr_cs_stat[i]); - } + AddIfShort (ns->last_resist[i], ob->resist[i], atnr_cs_stat[i]); + } if (pl->ns->monitor_spells) { @@ -1278,6 +1275,8 @@ if (!pl->ns) return; + pl->ns->update_spells = false; + if (!pl->ns->monitor_spells) return;