… | |
… | |
1405 | move_type &= ~MOVE_WALK; |
1405 | move_type &= ~MOVE_WALK; |
1406 | |
1406 | |
1407 | /* It is quite possible that a player's spell costing might have changed, |
1407 | /* It is quite possible that a player's spell costing might have changed, |
1408 | * so we will check that now. |
1408 | * so we will check that now. |
1409 | */ |
1409 | */ |
1410 | if (type == PLAYER) |
1410 | if (is_player ()) |
1411 | { |
1411 | contr->update_spells (); |
1412 | esrv_update_stats (contr); |
|
|
1413 | esrv_update_spells (contr); |
|
|
1414 | } |
|
|
1415 | |
1412 | |
1416 | // update the mapspace, if we are on a map |
1413 | // update the mapspace, if we are on a map |
1417 | if (!flag [FLAG_REMOVED] && map) |
1414 | if (!flag [FLAG_REMOVED] && map) |
1418 | map->at (x, y).flags_ = 0; |
1415 | map->at (x, y).flags_ = 0; |
1419 | } |
1416 | } |
… | |
… | |
1652 | new_draw_info (NDI_UNIQUE | NDI_RED, 0, who, buf); |
1649 | new_draw_info (NDI_UNIQUE | NDI_RED, 0, who, buf); |
1653 | } |
1650 | } |
1654 | } |
1651 | } |
1655 | |
1652 | |
1656 | if (changed) |
1653 | if (changed) |
1657 | { |
1654 | who->update_stats (); // should cause esrv_update_stats and esrv_update_spells |
1658 | who->update_stats (); |
|
|
1659 | esrv_update_stats (who->contr); |
|
|
1660 | /* check if the spell data has changed */ |
|
|
1661 | esrv_update_spells (who->contr); |
|
|
1662 | } |
|
|
1663 | } |
1655 | } |
1664 | |
1656 | |
1665 | /* |
1657 | /* |
1666 | * Returns how much experience is needed for a player to become |
1658 | * Returns how much experience is needed for a player to become |
1667 | * the given level. level should really never exceed max_level |
1659 | * the given level. level should really never exceed max_level |