Only show ping when available

This commit is contained in:
Eduardo Bart
2013-02-25 23:16:15 -03:00
parent 04f52d77d2
commit 2a225b99b7
2 changed files with 5 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ end
function online()
showGameButtons()
if modules.client_options.getOption('showFps') then
if modules.client_options.getOption('showFps') and (g_game.getFeature(GameClientPing) or g_game.getFeature(GameExtendedClientPing)) then
pingLabel:show()
end
end