Fix highscores (OTHire compatibility) (#331)

- Fixed showing outfit in highscores.
This commit is contained in:
Rodrigo Paixão 2018-12-14 10:10:19 -02:00 committed by Stefan A. Brannfjell
parent 2817010781
commit 01422f4815

View File

@ -908,7 +908,10 @@ function user_character_list_count($account_id) {
// HIGHSCORE FUNCTIONS \\
function fetchAllScores($rows, $tfs, $g, $vlist, $v = -1, $flags = false, $outfits = false) {
if (config('ServerEngine') !== 'OTHIRE')
$outfits = ($outfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`, `p`.`lookaddons` AS `addons`" : "";
else
$outfits = ($outfits) ? ", `p`.`lookbody` AS `body`, `p`.`lookfeet` AS `feet`, `p`.`lookhead` AS `head`, `p`.`looklegs` AS `legs`, `p`.`looktype` AS `type`" : "";
// Return scores ordered by type and vocation (if set)
$data = array();