--- crossfire/random_maps ---


Protocol:pserver User:anonymous
Machine:crossfire.cvs.sourceforge.net CVSROOT:/cvsroot/crossfire

Filename: style.c
Revision 1.26akirschbaum 2006/02/19 11:27:32 +3 -4
random_maps/style.c: In find_style() fix access to uninitialized variable.
Show difference between Revision 1.25 and 1.26
Revision 1.25akirschbaum 2006/02/10 17:59:27 +2 -2
Apply slightly modified patch #1428309 (code-cleanup: const, static) by
Stefan Huehner: add const/static to functions/variables. Remove some type
casts.
Show difference between Revision 1.24 and 1.25
Revision 1.24akirschbaum 2005/12/05 17:34:04 +2 -2
Apply patch #1371956 (code cleanup patch) by Stefan Huehner: fix old-style
function declarations and prototypes to proper Ansi C syntax. This patch
allows the compiler to check function arguments and also removes some warnings
when compiling with -Wstrict-prototypes.
Show difference between Revision 1.23 and 1.24
Revision 1.23akirschbaum 2005/10/29 17:03:43 +10 -2
random_maps/style.c: Pass correct sorting function to qsort(): the sorted
array contains pointers to strings, not strings.
Show difference between Revision 1.22 and 1.23
Revision 1.22ryo_saeba 2005/08/12 08:46:34 +2 -2
Fields changed from char* to const char*, cleanup.
Show difference between Revision 1.21 and 1.22
Revision 1.21mwedel 2005/04/14 01:57:02 +82 -121
Random map code improvements - add support for subdirectories in the
style maps for random maps. Add difficulty_increase parameter for random
maps to control how fast they get harder.
doc/Developers/random-maps: Add notes about difficulty_increase parameter.
random_maps/Makefile.am: Update proto directive to use cproto, not cextract.
random_maps/random_map.c: Update to use difficulty_increase when figuring
difficulty of maps. Add code to save it in list of parameters.
random_maps/random_map.h: Add difficulty_increase field to structure.
random_maps/reader.l, reader.c: Add code to find difficulty_increase parameter.
random_maps/rproto.h: rebuilt.
random_maps/special.c: Pass in difficulty increase to
write_parameters_to_string()
random_maps/style.c: Remove old scandir - replaced by our own load_dir() -
necessary because we need to check type of files, which scandir doesn't
easily let us do. Since it is now our own routine, just return
array of file names instead of dirent structures.
MSW 2005-04-13
Show difference between Revision 1.20 and 1.21
Revision 1.20mwedel 2004/06/11 01:12:57 +11 -10
common/object.c: insert_map_in_ob() - remove CAN_MERGE checks after the
map translation - otherwise, we can have bogus coordinates
that are used for GET_MAP_OB.
random_maps/style.c: pick_random_object() - have it return null object
(and probably crash) instead of getting into an infinite loop.
server/c_wiz.c: command_kick() - check FLAG_FREED of player. Remove all
the broken skill/exp object granting code in command_possess() - this
is probably still a broken function.
server/spell_attack.c: mood_change() - fix get_map_ob call - wasn't using
correct coordinate variables, resulting in crash.
MSW 2004-06-10
Show difference between Revision 1.19 and 1.20
Revision 1.19mwedel 2002/07/14 23:25:40 +3 -3
Update banner copyright with proper contact information.
MSW 2002-07-14
Show difference between Revision 1.18 and 1.19
Revision 1.18michtoen 2001/10/29 20:30:20 +1 -1
Remove a bug, reset some modules
Show difference between Revision 1.17 and 1.18
Revision 1.17michtoen 2001/10/29 18:49:02 +0 -0
really SOME fixes - most casting
Show difference between Revision 1.16 and 1.17
Revision 1.16michtoen 2001/10/29 17:24:13 +2 -2
no message
Show difference between Revision 1.15 and 1.16
Revision 1.15mwedel 2001/07/13 23:08:06 +5 -4
Map tiling checkin.
random_maps/decor.c,random_maps/door.c, random_maps/exit.c,
random_maps/floor.c,random_maps/monster.c,random_maps/special.c,
random_maps/standalone.c, random_maps/style.c,random_maps/treasure.c,
random_maps/wall.c:
modified to use modified insert_ob_in_map function,
use new macros to access map structure related data
MSW 2001-07-13
Show difference between Revision 1.14 and 1.15
Revision 1.14mwedel 2001/05/13 03:21:54 +18 -3
Move free_style_maps to style.c so that crossedit will compile properly.
MSW 2001-05-13
Show difference between Revision 1.13 and 1.14
Revision 1.13mwedel 2001/05/08 02:11:26 +79 -85
Various memory leaks fixed:
find_style: Release memory from scandir call.
pick_random_map: Modified to be more efficient, and not really on
fixed size temporary buffer.
MSW 2001-05-07
Show difference between Revision 1.12 and 1.13
Revision 1.12michtoen 2001/04/06 14:08:28 +3 -3
win32: change // to /* */
Show difference between Revision 1.11 and 1.12
Revision 1.11michtoen 2001/04/05 19:42:59 +3 -3
*** empty log message ***
Show difference between Revision 1.10 and 1.11
Revision 1.10cvs 2001/02/11 03:12:13 +35 -11
MSW 2001/01/11:
Other than various general cleanups, the main change this code does is
that style maps (for random maps) get loaded special now - they objects
they contain are not put on the active list, and they use a private map
list so they do not appear in the output of the 'maps command.
common/arch.c, common/treasure.c,server/login.c: Update calls to load_object
common/loaderl.l,loader.c: Update lex_load to take an optional flags option.
This is currently only used so that the loader can decide if it should
call update_ob_speedto put objects on the active list or not.
Calls to lex_load updated. load_object modified to take another option
common.map.c: remove PROCESS_WHILE_LOADING and CHECK_ACTIVE_MAPS ifdefs.
update calls to load_object. Remove some dead code.
include/config.h: Remove CHECK_ACTIVE_MAPS and PROCESS_WHILE_LOADING flags.
Those options did not work, and in all likelihood, this would be done
via threading now days and not what code was there.
include/libproto.h, sproto.h: updated or various function changes.
include/map.h: Add MAP_STYLE flag.
random_maps/exit.c: Call set_map_timeout after we load the final map
so it will get swapped out.
random_maps/standalone.c: Add dummy set_map_timeout function so it compiles.
random_maps/style.c: Add load_style_map function which does the job of
actually checking to see if a style map is in memory, and if not,
loads it up. Updates the pointers so it appears on a map style map list
and not the general map list.
server/main.c: create set_map_timeout function that deals with setting the
map timeouts. Fix bug so server doesn't crash if two players kill each
other on hall of selection.
server/monster.c remove dead code.
socket/loop.c: If realloc fails, catch it and exit with meaningful
error message.
End of MSW 2001/02/11 checkin.
Show difference between Revision 1.9 and 1.10
Revision 1.9peterm 2000/12/11 02:34:05 +8 -4
Modifed these two files to use "has_been_loaded" on map loading instead
of using load_original_map. Cuts down on map clutter.
Show difference between Revision 1.8 and 1.9
Revision 1.8cvs 2000/12/03 18:40:05 +2 -2
Checking for partial resistance code. Various minor errors also fixed
(compiler warnings, unused variables, Makefile.in changes, etc).
PR code also includes support to send protections to the client.
Show difference between Revision 1.7 and 1.8
Revision 1.7cvs 2000/11/16 23:07:49 +3 -3
MSW: 2000/11/16:
socket/metaserver.c: Add #ifdef MSG_DONTWAIT into metaserver.c for systems
that lack that definition.
random_maps/style.c: alphasort was not properly de-referencing pointers
when doing name comparisons, and thus returned garbage results,
resulting in a crash when entering random maps. This only happens
for systems which lack scandir in normal libraries (like Solaris).
BSDs and linux have scandir built in, and did not have a problem.
server/disease.c: fix infect_object - server would crash if player did
not have praying skill and was infecting someone else.
end of changes, MSW 2000/11/16
Show difference between Revision 1.6 and 1.7
Revision 1.6cvs 2000/06/21 00:03:47 +3 -2
Makefile.in: Update version to 0.95.6
include/patchlevel.h: Update to .6 for 0.95.6 release
common/porting.c, include/config.h, include/loader.h, include/skills.h,
include/spells.h, include/treasure.h, include/version.h, random_maps/style.c:
Update my mail address and copyright date. Mostly committed to sync
up my data with the CVS repository - MSW 6/20/2000
Show difference between Revision 1.5 and 1.6
Revision 1.5cvs 1999/07/29 22:46:54 +2 -2

fix type in the scandir function which cause compilation problems for
those systems that actually need it. - msw
Show difference between Revision 1.4 and 1.5
Revision 1.4cvs 1999/07/13 01:03:03 +1 -1

Global commit for 0.95.4 - most files have no changes but just have
differing headers between my local RCS and the CVS versions and need to
get synced up.
Show difference between Revision 1.3 and 1.4
Revision 1.3cvs 1999/06/26 17:48:36 +2 -1

PeterM:
reader.c: just rebuilt it, reader.l, its source file, wasn't touched.
special.c: I put a loop around the fountain placement code so
that it won't try to stick something outside of the map.
style.c: won't try to read things with CVS in them as map
styles anymore.
Show difference between Revision 1.2 and 1.3
Revision 1.2cvs 1999/04/14 19:19:47 +4 -4
Makefile doesnt really belong in CVS i think
config.h: I got rid of <recycle tmp maps> I hate that
door.c: "none" as a door choice now causes no doors to be placed
style.c: fix for compilation on Solaris contributed by a japanese guy.
Show difference between Revision 1.1 and 1.2
Revision 1.1uid200 1999/04/02 13:10:03 None
Initial revision
First version
Revision 1.1.1.1uid200 1999/04/02 13:10:03 +0 -0
First CVS revsion: crossfire-0.95.3
Show difference between Revision 1.1 and 1.1.1.1


File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:58