removed io
This commit is contained in:
parent
0c76c85d8f
commit
dcc1a6086f
2 changed files with 5 additions and 9 deletions
|
@ -51,9 +51,6 @@ notify_all_players(Table, Message) ->
|
||||||
gen_server:cast(Table, {notify_all_players, Message}).
|
gen_server:cast(Table, {notify_all_players, Message}).
|
||||||
|
|
||||||
notify_game(Table, From, Message) ->
|
notify_game(Table, From, Message) ->
|
||||||
io:format("Notify game called on"),
|
|
||||||
erlang:display(Table),
|
|
||||||
io:format("~n"),
|
|
||||||
gen_server:cast(Table, {notify_game, Message, From}).
|
gen_server:cast(Table, {notify_game, Message, From}).
|
||||||
|
|
||||||
%% ----------------------------------------------------------------------
|
%% ----------------------------------------------------------------------
|
||||||
|
@ -95,11 +92,10 @@ handle_cast({notify_game, Message, From}, #state { game_vm = GameVM } = State) -
|
||||||
{noreply, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_cast({notify_all_players, Message}, #state{players = Players} = State) ->
|
handle_cast({notify_all_players, Message}, #state{players = Players} = State) ->
|
||||||
io:format("Notifying all players... ~p~n", [Players]),
|
lists:foreach(
|
||||||
lists:foreach(fun(P) ->
|
fun(P) -> ggs_player:notify(P, "Server", Message) end,
|
||||||
io:format("Notifying ~p~n", [P]),
|
Players
|
||||||
ggs_player:notify(P, "Server", Message)
|
),
|
||||||
end, Players),
|
|
||||||
{noreply, State};
|
{noreply, State};
|
||||||
|
|
||||||
handle_cast(stop, State) ->
|
handle_cast(stop, State) ->
|
||||||
|
|
Reference in a new issue