aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-09-25 00:33:16 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-09-25 00:33:16 -0300
commit3dd2ee23b81b6df892ed44f66a99cd4c3fa66795 (patch)
tree818cde077be742134bb3a44e650d1fff1511815e /src
parent11bd6ba26dfdf70d54e685ed1fd1a5898a322c76 (diff)
downloadgame-3dd2ee23b81b6df892ed44f66a99cd4c3fa66795.tar.gz
game-3dd2ee23b81b6df892ed44f66a99cd4c3fa66795.zip
fix #32
Diffstat (limited to 'src')
-rw-r--r--src/communication.cc3
-rw-r--r--src/crskill.cc4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/communication.cc b/src/communication.cc
index b373900..af5b171 100644
--- a/src/communication.cc
+++ b/src/communication.cc
@@ -926,7 +926,8 @@ bool HandleLogin(TConnection *Connection){
#if TIBIA772
// IMPORTANT(fusion): With 7.72, the terminal type and version are brought
// outside the asymmetric data. This is probably to maintain some level of
- // backwards compatibility, given that 7.7 was the first encrypted protocol.
+ // backwards compatibility with versions before 7.7, given that it was the
+ // first encrypted protocol.
TerminalType = (int)InputBuffer.readWord();
TerminalVersion = (int)InputBuffer.readWord();
#endif
diff --git a/src/crskill.cc b/src/crskill.cc
index 27655a9..e098b25 100644
--- a/src/crskill.cc
+++ b/src/crskill.cc
@@ -669,9 +669,7 @@ void TSkillAdd::Advance(int Range){
int Max = this->Max + Increment;
int Act = this->Act + Increment;
- // TODO(fusion): I'm not sure this is right. Do we fill health and mana when
- // the player levels up?
- if(Act < Max){
+ if(Act > Max){
Act = Max;
}