fix: make getPing work properly
parent
7a44b445ca
commit
ebcb8d9657
|
@ -3866,7 +3866,7 @@ setPing( ping )
|
||||||
=============
|
=============
|
||||||
///ScriptDocBegin
|
///ScriptDocBegin
|
||||||
"Name: getPing()"
|
"Name: getPing()"
|
||||||
"Summary: Returns a fixed number. Added for backward compatibility"
|
"Summary: Returns the current ping of the client"
|
||||||
"Module: Utility"
|
"Module: Utility"
|
||||||
"Example: self getPing();"
|
"Example: self getPing();"
|
||||||
"SPMP: multiplayer"
|
"SPMP: multiplayer"
|
||||||
|
@ -3875,7 +3875,7 @@ setPing( ping )
|
||||||
*/
|
*/
|
||||||
getPing()
|
getPing()
|
||||||
{
|
{
|
||||||
return 1;
|
return self.ping;
|
||||||
}
|
}
|
||||||
|
|
||||||
void()
|
void()
|
||||||
|
|
Loading…
Reference in New Issue