nano-cleanups
*** empty log message ***
uglyness prevails in fixing nekosan
rework material code in preparation for nuking object->materials, also add some useful object methods in preparation of the mapspace limiting
RANDOM was broken due to signedness issues, also rewrote random_roll, no longer uses luck, but should
comments
- faster implementation for isqrt - add fast idistance approximation now find_dir_2 has moved to the top of the profiling output for mlab/cwdccastleofmarquis3, followed by get_rangevector, hit_map and ok_to_put_more.
- micro-optimised hit_map and ok_to_put_more, this immensely helped reduce load on dense maps. - introduced xy_normalise, which is imho a saner interface and much faster than get_map_flags so should be used in new code (and time-critical code).
added some copyrights
reindent, minor changes
- added maptile->insert and object->insert_at methods that might make code using it clearer. - replaced some insert_ob_in_map calls.
replace update_ob_speed by ->set_speed
- small, but subtle, rewrite of object management - perl will now keep attachable objects alive - objects are now refcounted - refcouts need to be tested explicitly (refcnt_chk) - explicit destroy is required current - explicit destroy asks "nicely" for the object to self destruct, if possible - refcounts will be used during mortal killing - minor bugfixes, optimisations etc. - some former hacks removed.
- reduce map memory consumption by reserving space for only the 3 existing layers - factorise out some functions into mapspace and object
removed QUEST and LIGHTNING types.
- minor cleanups - minor optimisations (in_player vs. is_player_inv) - added P_PLAYER map flag - some (dead) concept code
documented CLOCK and LIGHTNING, FLAG_REFLECTING and FLAG_REFL_SPELL. and discovered that LIGHTNING is mostly unused, most spells use subtypes to indicate bolt spells (the actual lightnings are not of type LIGHTNING).
- implement event watcher autoncancellation on reload - used it everywhere - removed lots of compatibility cruft - configure does no longer check for mandatory unix functionality/headers - confgiure now runs much faster
further cleanups and oofication
- more ooficiation - removed now superfluous remove calls
replace some function- by method-calls
allow wizards to cast denied spells
mapstruct => maptile removed many ytypedefs in favor of structure tags
replace was_destroyed by much simpler and less expensive ->destroyed, which is valid, as objetc pointers are now reliable.
indent
cleanup
indent
indent
indent
THIS CODE WILL NOT COMPILE use the STABLE tag instead. - major changes in object lifetime and memory management - replaced manual refcounting by shstr class - removed quest system - many optimisations - major changes
preventing hits of objects on a map by any effects if it is on a safe ground. this should prevent most harmful effects for items and players there (delta stuff that i didn't think of and couldn't find in the code).
expand initial tabs to spaces
nuke transports
autogenerate eventinc.h
some more fixes and refinements
converted more events, broken per-object events (needs map support), lots of fixes
removed P_SAFE_MAP and added P_SAFE as map flag set by an item with type SAFE_FLOOR (165)
added safe map and some checks over the code to make the maps really safe!
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.