--- crossfire/random_maps ---


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

Filename: rogue_layout.c
Revision 1.9akirschbaum 2005/10/28 14:08:53 +10 -8
Fix compiler warnings. Most changes do not change the program (remove unused
variables, convert "if(x = y)" into "x = y; if(x)"); a few actually fix
(possible) problems (fix uninitialized variables, fix printf format
specifiers, fix mismatches between signed and unsigned variables, add missing
return and default statements).
Show difference between Revision 1.8 and 1.9
Revision 1.8mwedel 2005/04/16 23:25:54 +2 -2
Various minor bugfixes.
common/los.c: Patch to fix negative lighting. Use isqrt instead of sqrt,
so we only want integer values anyways.
include/libproto.h, include/sproto.h: Rebuilt as there were some improperly
matching prototypes.
random_maps/rogue_layout.c: Replace sqrt with isqrt calls.
server/c_misc.c: Make name_cmp() a static declaration so it won't be put
in the sproto.h file.
server/init.c: Remove /* within comment string.
server/monster.c: Change sqrt to isqrt
MSW 2005-04-16
Show difference between Revision 1.7 and 1.8
Revision 1.7mwedel 2003/03/03 23:57:02 +15 -2
Fix bug in rogue layout in that if it is a single room, the exits
aren't placed next to each other - normally not a problem, but if the
map is symmetric, exit may otherwise be placed in another room that
isn't properly connected (that's really a problem in connect_spirals)
MSW 2003-03-04
Show difference between Revision 1.6 and 1.7
Revision 1.6mardahl 2001/05/07 03:30:34 +2 -0
Some memory leaks removed.
--PeterM
Show difference between Revision 1.5 and 1.6
Revision 1.5mardahl 2001/05/04 17:52:05 +9 -6
More fixes for dangling doors.
Show difference between Revision 1.4 and 1.5
Revision 1.4mardahl 2001/05/04 17:10:04 +24 -4
PeterM:
FIX: dangling doors in rogue_layout
CLEANUP: don't need RP for maze_gen (touches maze_gen.c, maze_gen.h
random_map.c, rproto.h
ADDED BUT NOT ACTIVATED: code from H. S. Teoh to 2x size corridors
in generic layouts.
Show difference between Revision 1.3 and 1.4
Revision 1.3cvs 2001/01/31 01:54:51 +6 -6

MSW 2001/01/30:
Complete rewrite of the exit handling code. Hopefully as an effect, this will
fix the player appearing in the middle of the oceans. I think the code
should also work better in many other areas. Main enhancements is a 3x3
area for pets to follow player to new map, as well as golems now following
players to the new maps.
include/sproto.h, random_maps/rproto.h - rebuilt.
random_maps/random_map.c: Change generate_random_map to take a structure
with the random map paremeters.
random_maps/reader.l, reader.c: Add set_random_map_variable function that
reads the map parameters from a char buffer. Also, remove some leftover
comments that were from the common/loader.l file.
random_maps/rogue_layout.c: Change some functions to be static so make proto
doesn't collect them.
random_maps/standalone.c: Add opening of parms file into main function since
it ws removed from the random_map.c file.
server/apply.c: Don't display the message of random maps to the players
as they enter them, as this message is random map parameters, and not
a real message.
server/login.c: #if 0 out using of the player loading element in the structure.
this isn't used right now.
server/main.c: Bulk of the changes. main changes are to break apart the
old enter_exit function into smaller functions that more logically do
the needed function (random maps, unique maps, and transferring the player
to the new map). random map code now passes the parameters via
structure instead of file in /tmp. Code is much more understandable now
and hopefully bugfree.
server/pets.c: minor changes/bugfixes. Search full SIZEOFFREE array, use
real owner variable when print out messages.
server/player.c: Remove usage of the loading variable in the player structure.
End of MSW 2001/01/30 checking.
Show difference between Revision 1.2 and 1.3
Revision 1.2peterm 2001/01/16 02:20:53 +18 -6
Installed nethack-style maps
Show difference between Revision 1.1 and 1.2
Revision 1.1peterm 2001/01/16 01:46:04 None
New layout style "nethack" or "rogue" like.
First version


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