mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 22:13:27 +02:00
Priorize OpenSSL 1.0 in cmake, warning fixes
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include "map.h"
|
||||
#include <framework/core/eventdispatcher.h>
|
||||
|
||||
void Effect::draw(const Point& dest, float scaleFactor, bool animate, int offsetX, int offsetY, LightView *lightView)
|
||||
void Effect::drawEffect(const Point& dest, float scaleFactor, bool animate, int offsetX, int offsetY, LightView *lightView)
|
||||
{
|
||||
if(m_id == 0)
|
||||
return;
|
||||
|
@@ -35,7 +35,7 @@ class Effect : public Thing
|
||||
};
|
||||
|
||||
public:
|
||||
void draw(const Point& dest, float scaleFactor, bool animate, int offsetX = 0, int offsetY = 0, LightView *lightView = nullptr);
|
||||
void drawEffect(const Point& dest, float scaleFactor, bool animate, int offsetX = 0, int offsetY = 0, LightView *lightView = nullptr);
|
||||
|
||||
void setId(uint32 id);
|
||||
uint32 getId() { return m_id; }
|
||||
|
@@ -1351,7 +1351,7 @@ void ProtocolGame::parsePlayerStats(const InputMessagePtr& msg)
|
||||
double level = msg->getU16();
|
||||
double levelPercent = msg->getU8();
|
||||
|
||||
if(g_game.getFeature(Otc::GameExperienceBonus))
|
||||
if(g_game.getFeature(Otc::GameExperienceBonus)) {
|
||||
if(g_game.getClientVersion() <= 1096) {
|
||||
double experienceBonus = msg->getDouble();
|
||||
} else {
|
||||
@@ -1361,6 +1361,7 @@ void ProtocolGame::parsePlayerStats(const InputMessagePtr& msg)
|
||||
int storeBoostAddend = msg->getU16();
|
||||
int huntingBoostFactor = msg->getU16();
|
||||
}
|
||||
}
|
||||
|
||||
double mana;
|
||||
double maxMana;
|
||||
|
@@ -155,7 +155,7 @@ void Tile::draw(const Point& dest, float scaleFactor, int drawFlags, LightView *
|
||||
// effects
|
||||
if(drawFlags & Otc::DrawEffects)
|
||||
for(const EffectPtr& effect : m_effects)
|
||||
effect->draw(dest - m_drawElevation*scaleFactor, scaleFactor, animate, m_position.x - g_map.getCentralPosition().x, m_position.y - g_map.getCentralPosition().y, lightView);
|
||||
effect->drawEffect(dest - m_drawElevation*scaleFactor, scaleFactor, animate, m_position.x - g_map.getCentralPosition().x, m_position.y - g_map.getCentralPosition().y, lightView);
|
||||
|
||||
// top items
|
||||
if(drawFlags & Otc::DrawOnTop)
|
||||
|
Reference in New Issue
Block a user