ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/pets.C
Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Sat Nov 17 23:40:04 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.73: +1 -0 lines
Diff to previous 1.73
copyright update 2018

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Sat Sep 16 22:17:42 2017 UTC (6 years, 7 months ago) by root
Branch: MAIN
Changes since 1.72: +16 -16 lines
Diff to previous 1.72
freearr => DIR

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Sun Jan 29 02:47:05 2017 UTC (7 years, 3 months ago) by root
Branch: MAIN
Changes since 1.71: +8 -8 lines
Diff to previous 1.71
remove eol whitespace

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Wed Nov 16 23:42:03 2016 UTC (7 years, 5 months ago) by root
Branch: MAIN
Changes since 1.70: +1 -1 lines
Diff to previous 1.70
copyright update 2016

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Mon Oct 29 23:55:55 2012 UTC (11 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-3_1
Changes since 1.69: +5 -5 lines
Diff to previous 1.69
trailing space removal

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Tue Jan 3 11:25:36 2012 UTC (12 years, 4 months ago) by root
Branch: MAIN
Changes since 1.68: +1 -1 lines
Diff to previous 1.68
update copyrights to 2012

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Wed May 4 07:41:14 2011 UTC (13 years ago) by root
Branch: MAIN
Changes since 1.67: +1 -1 lines
Diff to previous 1.67
in_memory => state

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Sat Apr 23 04:56:56 2011 UTC (13 years ago) by root
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66
update copyright to 2011

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sun May 2 20:57:53 2010 UTC (14 years ago) by root
Branch: MAIN
CVS Tags: rel-3_0
Changes since 1.65: +2 -3 lines
Diff to previous 1.65
use set_speed to change speed

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Thu Apr 29 07:32:34 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.64: +1 -1 lines
Diff to previous 1.64
*** empty log message ***

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Wed Apr 21 07:10:01 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.63: +2 -4 lines
Diff to previous 1.63
indent

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Sun Apr 11 00:34:06 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.62: +25 -25 lines
Diff to previous 1.62
get rid of QUERY_FLAG/SET_FLAG/CLEAR_FLAG macros that I always hated

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Fri Mar 26 01:04:45 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.61: +1 -1 lines
Diff to previous 1.61
update copyright for up to 2010

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Fri Mar 26 00:59:22 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60
remove bogus 2007 copyright that was added wrongly by the script, update to affero license

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Fri Mar 26 00:53:26 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.59: +4 -4 lines
Diff to previous 1.59
move_ob/move_object => ->move

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun Nov 29 17:41:08 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-2_92, rel-2_93
Changes since 1.58: +2 -2 lines
Diff to previous 1.58
-instance, some los fiddling

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sun Nov 29 09:41:28 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
Changes since 1.57: +1 -4 lines
Diff to previous 1.57
speed is positive inside the server

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Sat Nov 7 18:30:06 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.56: +5 -8 lines
Diff to previous 1.56
lots of cleanups

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 13:03:34 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_90
Changes since 1.55: +1 -1 lines
Diff to previous 1.55
make effectively static symbols actually static, part 2

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 12:49:19 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
make effectively static symbols actually static, part 1

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Fri Oct 16 00:30:19 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_82
Changes since 1.53: +2 -5 lines
Diff to previous 1.53
-MAX_BUF

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Mon Oct 12 14:00:59 2009 UTC (14 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_81
Changes since 1.52: +7 -6 lines
Diff to previous 1.52
clarify license

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Fri Sep 25 18:13:03 2009 UTC (14 years, 7 months ago) by root
Branch: MAIN
Changes since 1.51: +6 -2 lines
Diff to previous 1.51
indent

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Thu Jan 1 16:05:13 2009 UTC (15 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-2_75, rel-2_76, rel-2_77, rel-2_78, rel-2_79, rel-2_80
Changes since 1.50: +1 -1 lines
Diff to previous 1.50
rmeove most shstr-strcmps

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Thu Jan 1 15:43:35 2009 UTC (15 years, 4 months ago) by root
Branch: MAIN
Changes since 1.49: +1 -1 lines
Diff to previous 1.49
eradictae strstr when contains is meant

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 07:43:36 2008 UTC (15 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-2_74
Changes since 1.48: +18 -36 lines
Diff to previous 1.48
indent

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 10:31:32 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_72, rel-2_73
Changes since 1.47: +6 -14 lines
Diff to previous 1.47
introduce drop_and_destroy and use it

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 10:20:49 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
Changes since 1.46: +15 -8 lines
Diff to previous 1.46
do the same everywhere else

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 06:32:09 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45
spell effective level system reworked

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue May 6 16:55:26 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_54, rel-2_55, rel-2_56, rel-2_6, rel-2_61, rel-2_7, rel-2_71
Changes since 1.44: +1 -1 lines
Diff to previous 1.44
update copyright

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Tue Apr 15 14:21:04 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_5, rel-2_52, rel-2_53
Changes since 1.43: +1 -1 lines
Diff to previous 1.43
*** empty log message ***

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Tue Jan 22 16:22:45 2008 UTC (16 years, 3 months ago) by root
Branch: MAIN
CVS Tags: rel-2_41, rel-2_42, rel-2_43
Changes since 1.42: +15 -15 lines
Diff to previous 1.42
just in case, set nodrop on the freed objects map. reorder some code in get_pet_enenmy

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Sat Jan 5 03:44:59 2008 UTC (16 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-2_4
Changes since 1.41: +1 -1 lines
Diff to previous 1.41
fix possible crash bug

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Thu Nov 8 19:43:27 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_32
Changes since 1.40: +4 -4 lines
Diff to previous 1.40
update copyrights and other minor stuff to deliantra

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Wed Sep 12 11:10:11 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-2_3
Changes since 1.39: +3 -3 lines
Diff to previous 1.39
- rewrite/cleanup ob_blocked a little. its more efficient now, probably
  has less bugs and more bugs.
- get rid of now unused P_NO_PASS.

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Wed Aug 15 18:11:14 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-2_2
Changes since 1.38: +0 -17 lines
Diff to previous 1.38
fix summon golem w.r.t. head

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 05:00:20 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
Changes since 1.37: +10 -11 lines
Diff to previous 1.37
- upgrade crossfire trt to the GPL version 3 (hopefully correctly).
- add a single file covered by the GNU Affero General Public License
  (which is not yet released, so I used the current draft, which is
  legally a bit wavy, but its likely better than nothing as it expresses
  direct intent by the authors, and we can upgrade as soon as it has been
  released).
  * this should ensure availability of source code for the server at least
    and hopefully also archetypes and maps even when modified versions
    are not being distributed, in accordance of section 13 of the agplv3.

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Tue Jun 5 13:05:02 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.36: +3 -4 lines
Diff to previous 1.36
- improve observe
- remove more cruft code
- archetype loading almost works again, reloading probbaly still borked.

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Mon Jun 4 13:04:00 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.35: +8 -8 lines
Diff to previous 1.35
- archetype is now a subclass of object.
- store archetypes in an object_vector.
- use a different startegy for archetype loading
  (reloading is MOST CERTAINLY broken).

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Mon Jun 4 12:19:09 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34
rename arch->name to arch->archname for preparation of subclassing object

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Mon May 28 21:28:36 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.33: +17 -17 lines
Diff to previous 1.33
update copyrights in server/*.C

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Thu May 24 00:28:41 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.32: +3 -3 lines
Diff to previous 1.32
fix segfault, real cause still mysterious

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Thu May 17 15:55:29 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
another crash fix - maybe owners should always be players

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Sun May 6 04:49:37 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30
owners sometimes are not on a map but in the inventory of somehting else

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Mon Apr 30 04:25:30 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.29: +5 -6 lines
Diff to previous 1.29
This is the first rough cut of the skill use system (use the STABLE tag).

Details will likely change, and combat skills do not work very well, but
it works quite well.

Players no longer have a shoottype or range slots, instead, each player
has these members:

   combat_skill/combat_ob  the currently selected skill (and weapon)
                           for direct attacks.
   ranged_skill/ranged_ob  the currently selected ranged skill (and
                           bow/spell/item)
   golem                   the currently-controlled golem, if any.

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 12:32:16 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.28: +9 -28 lines
Diff to previous 1.28
server crashed this morning because a freed golem tried to follow
his owner, triggering the assertion failure.

the golem had no owner, but the owner still had him in his range slots.

I refactored a bit of the code and rearranged it to hopefully increase
chances of this not occuring again.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 11:50:45 2007 UTC (17 years ago) by elmex
Branch: MAIN
Changes since 1.27: +92 -92 lines
Diff to previous 1.27
finally fixed the inactive pet monsters and the disappearing pet monsters
of traps/runes and doors. yay!

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sun Apr 15 23:47:59 2007 UTC (17 years ago) by elmex
Branch: MAIN
Changes since 1.26: +14 -1 lines
Diff to previous 1.26
fixed dissappearing and inactive summoned monster bug with traps and runes.

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 04:12:29 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.25: +1 -0 lines
Diff to previous 1.25
- rewrote more face handling code
- automatically send smooth faces, as the client will need them anyways
  and it makes little sense to wait for the client to axk for it. of course,
  gcfclient suffers from weird ordering problems again.
- UP_OBJ_FACE was often abused in situations where other things changed,
  updated lots of spaces, probably more to be done.
- update_smooth became so small that inlining it actually clarified
  the code. similar for update_space, which is not inlined for other reasons.
- faces were not initialised properly
- add versioncheck for face data
- rewrite invisibility handling a bit: god finger etc. now makes you blink,
  blinking routine has changed to be less annoying and more useful while
  still indicating invisibleness.

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Thu Jan 18 19:42:10 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.24: +1 -1 lines
Diff to previous 1.24
just experimenting

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Thu Jan 18 16:19:34 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.23: +22 -43 lines
Diff to previous 1.23
- fix a horrendous bug that might have caused all the map corruption
- optimise/modernise some map-insert-related stuff
- fix debug_desc
- remove crypt configury
- minor adjustments/cleanups

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon Jan 15 21:06:20 2007 UTC (17 years, 3 months ago) by pippijn
Branch: MAIN
Changes since 1.22: +22 -22 lines
Diff to previous 1.22
comments

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Jan 8 01:19:04 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.21: +0 -4 lines
Diff to previous 1.21
more preperations for player eviction

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sun Jan 7 23:12:03 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20
use destroy_on_detah, not no_drop, for summoned stuff

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sat Jan 6 14:42:31 2007 UTC (17 years, 4 months ago) by pippijn
Branch: MAIN
Changes since 1.19: +1 -0 lines
Diff to previous 1.19
added some copyrights

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Wed Jan 3 20:32:13 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.18: +19 -12 lines
Diff to previous 1.18
set no_drop flag on all inv items of created objects (e.g. pets), experimental.

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Wed Jan 3 02:30:52 2007 UTC (17 years, 4 months ago) by elmex
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17
implemented proper support for empty treasures, which
sadly occur in empty treasure lists. fixing treasurelists
to have no entries at all would be even more complicated,
but even when this is fixed, the current changes only make the
server more crash robust to bad treasures.
Also removed the 'NONE' specialcase for treasure lists. Developers
should use 'none' instead now.

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Tue Dec 26 08:55:00 2006 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.16: +1 -4 lines
Diff to previous 1.16
replace update_ob_speed by ->set_speed

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Wed Dec 20 09:14:22 2006 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15
- minor cleanups
- minor optimisations (in_player vs. is_player_inv)
- added P_PLAYER map flag
- some (dead) concept code

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 03:28:42 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.14: +18 -18 lines
Diff to previous 1.14
further cleanups and oofication

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 21:39:57 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.13: +6 -6 lines
Diff to previous 1.13
- more ooficiation
- removed now superfluous remove calls

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 20:53:03 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.12: +12 -12 lines
Diff to previous 1.12
replace some function- by method-calls

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sat Dec 9 16:11:09 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.11: +4 -6 lines
Diff to previous 1.11
remove golem_count, likely golems are destroyed late now

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sat Sep 16 22:24:13 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10
mapstruct => maptile
removed many ytypedefs in favor of structure tags

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 23:13:49 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.9: +5 -6 lines
Diff to previous 1.9
replace was_destroyed by much simpler and less expensive ->destroyed,
which is valid, as objetc pointers are now reliable.

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 22:34:04 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.8: +1 -7 lines
Diff to previous 1.8
indent

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 17:10:25 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.7: +10 -13 lines
Diff to previous 1.7
removed now obsolete generation counter checks - further slimmed down sizeof(objetc) to 616 bytes

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Tue Sep 12 21:20:15 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6
*** empty log message ***

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Tue Sep 12 20:55:18 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.5: +10 -2 lines
Diff to previous 1.5
indent

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Tue Sep 12 18:15:35 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.4: +32 -17 lines
Diff to previous 1.4
- introduce shstr_cmp for mass comparisons to shstr and make use of it
- introduce assign utility function to replace strncpy

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sun Sep 10 15:59:57 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.3: +989 -825 lines
Diff to previous 1.3
indent

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 00:18:42 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.2: +19 -21 lines
Diff to previous 1.2
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

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 08:01:37 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.1: +539 -539 lines
Diff to previous 1.1
expand initial tabs to spaces

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 13 17:16:04 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Made server compile with C++.
Removed cfanim plugin and crossedit.
C++ here we come.

Convenience Links

Links to HEAD: (view) (download) (annotate)

Compare Revisions

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.

  Diffs between and
  Type of Diff should be a