Show
Ignore:
Timestamp:
12/11/07 19:28:13 (15 years ago)
Author:
exi
Message:

Removed autoupgrade code, all databases should be up to date.
Fixed 2 parser bugs with trinity mails.
Added event call after all mods have been loaded.
Added an option to include the dropped item value to total loss.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.parser.php

    r277 r282  
    387387            if ($dmgtaken) 
    388388            { 
    389                 $endpos = strpos($this->killmail_, "Dropped items:") - $destroyedpos - 16; 
     389                $pos = strpos($this->killmail_, "Dropped items:"); 
     390                if ($pos === false) 
     391                { 
     392                    $pos = strlen($this->killmail_); 
     393                } 
     394                $endpos = $pos - $destroyedpos - 16; 
    390395            } 
    391396 
     
    404409            if ($startpos) 
    405410            { 
    406                 $endpos = strlen($this->killmail_) - $startpos + 16; 
    407  
    408                 $dropped = explode("\n", trim(substr($this->killmail_, $startpos + 16, $endpos))); 
     411                $endpos = strlen($this->killmail_) - $startpos + 14; 
     412 
     413                $dropped = explode("\n", trim(substr($this->killmail_, $startpos + 14, $endpos))); 
    409414                #var_dump($dropped); exit; 
    410415