mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 03:35:48 +00:00
Return the value from GuiPoll
This commit is contained in:
@@ -198,12 +198,7 @@ CStr GetPlayerGUID()
|
||||
|
||||
JS::Value PollNetworkClient(const ScriptRequest& rq)
|
||||
{
|
||||
if (!g_NetClient)
|
||||
return JS::UndefinedValue();
|
||||
|
||||
JS::RootedValue message{rq.cx};
|
||||
g_NetClient->GuiPoll(rq, &message);
|
||||
return message;
|
||||
return g_NetClient ? g_NetClient->GuiPoll(rq) : JS::UndefinedValue();
|
||||
}
|
||||
|
||||
void SendGameSetupMessage(const ScriptInterface& scriptInterface, JS::HandleValue attribs1)
|
||||
|
||||
Reference in New Issue
Block a user