From 01422f4815128a0075a30c852c66adb9064d86a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Paix=C3=A3o?= Date: Fri, 14 Dec 2018 10:10:19 -0200 Subject: [PATCH] Fix highscores (OTHire compatibility) (#331) - Fixed showing outfit in highscores. --- engine/function/users.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/function/users.php b/engine/function/users.php index 6cfcd13..530f943 100644 --- a/engine/function/users.php +++ b/engine/function/users.php @@ -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) { - $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`" : ""; + 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();