Welcome, Guest. Please login or register.
Kingdoms of Ahln
Pages: [1]
  Print  
Author Topic: Players not getting kicked off after disconnection  (Read 378 times)
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« on: January 07, 2009, 12:12:12 am »

It's a little early for a new release, but if you are having people who lose connections or do not log off properly, I made a little mistake in the code which you can easily remedy. Line 100 in lib/playerconnect.rb reads:

Code:
if $manager.object_loaded? @player

when it should be

Code:
if $manager.object_loaded? @player.goid
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #1 on: January 07, 2009, 06:48:27 pm »

Oops, actually that should be

Code:
if @player and $manager.object_loaded? @player.goid
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2006-2009, Simple Machines
Terra97 design by Bloc