From 3dd2ee23b81b6df892ed44f66a99cd4c3fa66795 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 25 Sep 2025 00:33:16 -0300 Subject: fix #32 --- src/communication.cc | 3 ++- src/crskill.cc | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3