ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/player.C
(Generate patch)

Comparing deliantra/server/common/player.C (file contents):
Revision 1.9 by root, Thu Dec 14 04:30:32 2006 UTC vs.
Revision 1.10 by root, Sat Dec 16 03:08:25 2006 UTC

49 { 49 {
50 pl->ob->contr = 0; 50 pl->ob->contr = 0;
51 pl->ob->destroy (); 51 pl->ob->destroy ();
52 } 52 }
53 53
54 if (pl->socket)
55 {
56 pl->socket->pl = 0;
57 pl->socket->send_packet ("goodbye");
58 pl->socket->destroy ();
59 }
60
54 /* Clear item stack */ 61 /* Clear item stack */
55 if (pl->stack_items) 62 if (pl->stack_items)
56 free (pl->stack_items); 63 free (pl->stack_items);
57
58 pl->socket->status = Ns_Dead;
59 pl->socket->pl = 0;
60 64
61 delete pl; 65 delete pl;
62} 66}
63 67
64 68
71atnr_is_dragon_enabled (int attacknr) 75atnr_is_dragon_enabled (int attacknr)
72{ 76{
73 if (attacknr == ATNR_MAGIC || attacknr == ATNR_FIRE || 77 if (attacknr == ATNR_MAGIC || attacknr == ATNR_FIRE ||
74 attacknr == ATNR_ELECTRICITY || attacknr == ATNR_COLD || attacknr == ATNR_ACID || attacknr == ATNR_POISON) 78 attacknr == ATNR_ELECTRICITY || attacknr == ATNR_COLD || attacknr == ATNR_ACID || attacknr == ATNR_POISON)
75 return 1; 79 return 1;
80
76 return 0; 81 return 0;
77} 82}
78 83
79/* 84/*
80 * returns true if the adressed object 'ob' is a player 85 * returns true if the adressed object 'ob' is a player

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines