Fix wrong #define leading to crash.
4 lines of code changed in:
common/map.c: Move update_buttons() from ready_map_name() to
load_original_map() - in this way, button state is not reset when
swapping a map back into memory, but button state is still verified
at first load. Fixes bug 1706075.
MSW 2007-09-27
10 lines of code changed in:
server/gods.c: modify god_enchants_weapon() to increase item_power of weapon
by 1 each time god improves it. This make sense, but also fixes bug
1696807 - if the weapon has item_power 0, when player logs on, game
will calculate new item power, which may be quite surprising to
character. If item_power is set, new item_power won't be calculated.
MSW 2007-09-27
10 lines of code changed in:
Fix some hiscore changes - some functions were not passing in quiet flag
when they should have been, etc.
--
server/apply.c: Remove some code that sees if player can save - update_score()
does this, so no reason to have it in both places.
server/hiscore.c: Add check not to save 0 scores.
server/login.c: Be quiet for backup saves.
server/server.c: Be quiet for backup saves.
---
MSW 2007-09-27
20 lines of code changed in:
ChangeLog update
8 lines of code changed in:
Face/animation related plugin functions.
5256 lines of code changed in:
Required updates for the potion of invulnerability to potion of shielding name change
3 lines of code changed in:
Couple bug fixes related to 1713188 - dropall performance issues.
---
include/config.h: Increase SOCKETBUFSIZE - should help reduce premature
dropped connections.
server/c_object.c: Improve dropall logic - instead of calling fix_player() for
each object dropped, call it just once for the entire stack - should
improve performance considerably. This also fixes sending updated
weight information to the client for each object dropped (player weight
1000, player weight 995, player weight 992, etc), so may help on dropped
connections.
MSW 2007-09-26
39 lines of code changed in:
common/object.c: Modify can_pick() so you are not allowed to pick up
multipart objects. insert_ob_in_ob() doesn't let it happen, but
this way, at least the player gets a message. Also cleaned up function
so it is easier to read.
MSW 2007-09-26
25 lines of code changed in:
ChangeLog updates
17 lines of code changed in:
Adding the minor, medium and major Potions of Life to the treasure list so they can be found in shops, dungeons, et al.
9 lines of code changed in:
Missed updating the treasures list in r7254 which was to rename potion of invulnerability to potion of shielding. Hopefully this will remove confusion as to why one takes damage from all attack types (except physical) when drinking this potion.
1 lines of code changed in:
common/loader.l: Add artifact_init check to check_loaded_object() - if set
don't do processing. This has been in the trunk for 9 months, without
any problems observed. Fixes bug 1727944 - horn of plenty shoots bullets -
what happens now is the artifacts are 'fixed' in check_loaded_objects(),
with magic bullet getting added to them.
MSW 2007-09-25
12 lines of code changed in:
Add support for periodic updating of hiscore information for players - fixes
bug 1735262. Main change was to modify check_score() to take a flag that
determines if messages related to high score placement should be displayed
or not.
--
include/sproto.h: Rebuilt because of change to check_score()
server/apply.c: Change calls to check_score() to take quiet flag.
server/c_wiz.c: Change calls to check_score() to take quiet flag.
server/hiscore.c: Modify check_score to take quiet flag, update function
not to print messages if it is set.
server/login.c: Change calls to check_score() to take quiet flag, remove
some meaningless code at end of emergency_save()
server/player.c: Change calls to check_score() to take quiet flag.
server/server.c: Add calls to check_score() when doing autosaves as well
as when player connection is unexpected terminated.
--
MSW 2007-09-25
71 lines of code changed in:
Add missing __CEXTRACT__ around include of sproto.h
MSW 2007-09-25
2 lines of code changed in:
Always destroy projectiles having no_drop when they stop being a projectile.
46 lines of code changed in:
Whitespace changes.
4 lines of code changed in:
Whitespace changes.
204 lines of code changed in:
Fix bug 1763098 - wrong key placement in random maps. The key placement breaks
if there is a normal door next to the locked door, so modify code to remove
normal doors next to locked doors. On broken test map, this change results
in key being placed in right area.
--
random_maps/treasure.c: Update some comments on keyplace(), since the comments
did not go into limitations on what keyplace does. Add
remove_adjacent_doors() to remove the doors, and call to function from
lock_and_hide_doors()
MSW 2007-09-18
72 lines of code changed in:
Fix bug 1790456 - dropall with count drops more than 'count' of each
object. Note for the 1.x branch, this looks like a bigger change
because of whitespace/formatting differences.
server/c_object.c: in command_dropall(), after each call to drop(),
set op->contr->count back to original value - drop() sets it to 0.
MSW 2007-09-17
101 lines of code changed in:
Add ability to specify port that crossfire listens to in settings file.
Handy when you want to run 2 servers on same host and don't want to
mess with command line options.
--
lib/settings: Add port variable and comment on its usage.
server/init.c: Add code to handle port value in settings file.
MSW 2007-09-17
18 lines of code changed in:
Fix chaos attacktypes when used from a weapon - Fixes bug 1795875.
Problem was target of attack was getting attacktype changed, and
attacker was never getting chaos attacktypes.
--
include/attack.h: move ATTACKS array and Chaos_Attacks structure
here. server/attack.c now needs that data, so having it only in
server/spell_util.c no longer works.
server/attack.c: Remove call to shuffle_attack(), instead just update
the local type (attack type) variable.
server/spell_util.c: Remove ATTACKS array - moved to include/attack.h.
MSW 2007-09-16
54 lines of code changed in:
Fix problems with player updating client with spell handling - should all
work now.
--
server/login.c: Move esvr_add_spells() and fix_object() to after
esvr_new_player() - when client gets new player protocol from server,
it purges all info it has, including spell data.
server/player.c: Remove the line that clears the monitor_spells in the
socket structure. With the clear there, if you play a new character on
the same server (savebed, a to play again), this second character
doesn't get any spells.
socket/request.c: Check to see if pl->spell_state is non null in
esrv_update_spells() - in this way, server doesn't try to update
spells on client before the first add_player_spells() is called.
--
MSW 2007-09-16
41 lines of code changed in:
Fix returns that are missing return value.
MSW 2007-09-16
2 lines of code changed in:
Remove unused variable.
MSW 2007-09-16
0 lines of code changed in:
Minor cleanup - remove some unused variables in some functions.
MSW 2007-09-16
0 lines of code changed in:
Whitespace changes.
1 lines of code changed in:
Always expand randomitems; do not omit it for player summoned monsters or golems.
6 lines of code changed in:
Mark all inventory objects as FLAG_NO_DROP, not only objects having nrof=0.
2 lines of code changed in:
Always mark inventory objects as FLAG_NO_DROP, not only objects created from randomitems attribute.
8 lines of code changed in:
Remove trailing whitespace.
3 lines of code changed in:
Extract common code into function.
18 lines of code changed in:
Remove unneeded parentheses.
5 lines of code changed in:
Remove unneeded check for NULL pointer.
1 lines of code changed in:
Remove trailing whitespace.
47 lines of code changed in:
Add a message when explore mode is disabled. Add help file for this command.
51 lines of code changed in:
Add an 'empty' command, that puts all contents of a (or all) container either on ground or in player's opened container.
109 lines of code changed in:
Server support for Metaserver2 - brought back from trunk:
acinclude.m4: Add LIBCURL_CHECK_CONFIG macro, used by configure.
configure.ac: Add check for pthread, LIBCURL. Extra
logic to display if we will build with metaserver2 support
lib/Makefile.am: add metaserver2 to list of files to install.
*/Makefile.in: rebuilt
lib/metaserver2: Settings file for metaserver2 support.
server/init.c: Add call to metaserver2_init() during startup.
include/metaserver2.h: Header file include metaserver2 related data.
include/autoconf.h.in: Rebuilt
include/sockproto.h: Rebuilt with new metaserver2 functions.
socket/metaserver.c: metaserver2 update logic added.
MSW 2007-08-31
1684 lines of code changed in: