From 5761a4a63807dbdee46fea3b19305d4c2ecf27a5 Mon Sep 17 00:00:00 2001 From: Nuno Date: Sat, 13 Feb 2021 17:10:49 +0100 Subject: [PATCH] Merge remote-tracking branch 'origin/fixes' --- .../src/entities_game_service/game_item_manager/game_item.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp b/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp index c33ab2d2a..366227df3 100644 --- a/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp +++ b/ryzom/server/src/entities_game_service/game_item_manager/game_item.cpp @@ -4412,7 +4412,8 @@ uint16 CGameItem::getClientEnchantValue() const } if ( sabrinaValue != 0) { - return uint8( 1 + sapLoad / (uint32)(sabrinaValue * sabrinaRelativeValue) ); + // client side value is limited to 10bits + return std::min(uint(999), uint(1 + sapLoad / (uint32)(sabrinaValue * sabrinaRelativeValue))); } else {