Fixed ggs_vm_runner

This commit is contained in:
Jonatan Pålsson 2011-02-14 19:32:46 +01:00
parent 1e08fe0015
commit bf98e1fee2
2 changed files with 30 additions and 14 deletions

View file

@ -104,8 +104,8 @@ handle_cast({define, Token, SourceCode}, State) ->
% Handle javascript calls
handle_cast({call, Token, Command}, State) ->
GameVM = getJSVM(Token, State),
ggs_vm_runner:user_command(GameVM, "User", Command, []),
%send(State#state.lsock, Token, "JS says:", binary_to_list(Ret)), Unessecary
Ret = ggs_vm_runner:user_command(GameVM, "User", Command, []),
send(State#state.lsock, Token, "JS says:", binary_to_list(Ret)),
{noreply, State};
% Set the new state to the reference generated, and JSVM associated