mirror of
https://github.com/XLabsProject/iw4x-rawfiles.git
synced 2023-08-02 15:02:11 +02:00
fix: make getPing work properly
This commit is contained in:
parent
7a44b445ca
commit
ebcb8d9657
@ -3866,7 +3866,7 @@ setPing( ping )
|
||||
=============
|
||||
///ScriptDocBegin
|
||||
"Name: getPing()"
|
||||
"Summary: Returns a fixed number. Added for backward compatibility"
|
||||
"Summary: Returns the current ping of the client"
|
||||
"Module: Utility"
|
||||
"Example: self getPing();"
|
||||
"SPMP: multiplayer"
|
||||
@ -3875,7 +3875,7 @@ setPing( ping )
|
||||
*/
|
||||
getPing()
|
||||
{
|
||||
return 1;
|
||||
return self.ping;
|
||||
}
|
||||
|
||||
void()
|
||||
|
Loading…
Reference in New Issue
Block a user