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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.158 by root, Mon Aug 13 15:46:45 2007 UTC vs.
Revision 1.159 by root, Wed Aug 15 04:59:46 2007 UTC

284} 284}
285 285
286void 286void
287player::disconnect () 287player::disconnect ()
288{ 288{
289 if (ob)
290 {
291 ob->close_container (); //TODO: client-specific
292 ob->drop_unpaid_items ();
293 }
294
289 if (ns) 295 if (ns)
290 { 296 {
291 if (active) 297 if (active)
292 INVOKE_PLAYER (LOGOUT, this, ARG_INT (0)); 298 INVOKE_PLAYER (LOGOUT, this, ARG_INT (0));
293 299
294 INVOKE_PLAYER (DISCONNECT, this); 300 INVOKE_PLAYER (DISCONNECT, this);
295 301
296 ns->reset_stats (); 302 ns->reset_stats ();
297 ns->pl = 0; 303 ns->pl = 0;
298 ns = 0; 304 ns = 0;
299 }
300
301 if (ob)
302 {
303 ob->close_container (); //TODO: client-specific
304 ob->drop_unpaid_items ();
305 } 305 }
306 306
307 observe = ob; 307 observe = ob;
308 308
309 deactivate (); 309 deactivate ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines