mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Minor fixes to some previous commits.
* Fixed a bug with storing the protocol version. * Fixed an issue with text windows cancelling. * Fixed a typo in the source.
This commit is contained in:
@@ -91,8 +91,8 @@ function terminate()
|
||||
g_settings.set('window-pos', g_window.getUnmaximizedPos())
|
||||
g_settings.set('window-maximized', g_window.isMaximized())
|
||||
|
||||
local clientVersion = g_game.getProtocolVersion()
|
||||
if clientVersion ~= 0 then
|
||||
g_settings.set('client-version', clientVersion)
|
||||
local protocolVersion = g_game.getProtocolVersion()
|
||||
if protocolVersion ~= 0 then
|
||||
g_settings.set('protocol-version', protocolVersion)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user