mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
Fix WritableDate to correct version (at least I hope so), fixes #446
This commit is contained in:
@@ -1472,7 +1472,6 @@ void Game::setProtocolVersion(int version)
|
|||||||
{
|
{
|
||||||
enableFeature(Otc::GameLooktypeU16);
|
enableFeature(Otc::GameLooktypeU16);
|
||||||
enableFeature(Otc::GameMessageStatements);
|
enableFeature(Otc::GameMessageStatements);
|
||||||
enableFeature(Otc::GameWritableDate);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(version >= 780)
|
if(version >= 780)
|
||||||
@@ -1485,6 +1484,10 @@ void Game::setProtocolVersion(int version)
|
|||||||
enableFeature(Otc::GameNewOutfitProtocol);
|
enableFeature(Otc::GameNewOutfitProtocol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(version >= 790) {
|
||||||
|
enableFeature(Otc::GameWritableDate);
|
||||||
|
}
|
||||||
|
|
||||||
if(version >= 780 && version <= 854) { // 780 might not be accurate
|
if(version >= 780 && version <= 854) { // 780 might not be accurate
|
||||||
enableFeature(Otc::GameChargeableItems);
|
enableFeature(Otc::GameChargeableItems);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user