anchor.diff:  %% @doc Game's main loop.
   %% @todo Have some kind of clock process for keepalive packets.
   %% @todo Handle 0102 and 0503 broadcasts correctly.
  +%% @todo Don't use SrcGID!!
   
   loop(CSocket, GID, Version, SoFar) ->
   	receive
  
positive.code: 	User = egs_db:users_select(GID),
  	file:write_file(io_lib:format("save/~s/~b-character.options", [User#users.folder, User#users.charnumber]), Options);
  
  %% @doc Lobby event handler. Do nothing for now.
  %%      Apparently used for elevator, sit on chairs, and more?
  
  handle(16#0f0a, _, GID, _, _) ->
  	log(GID, "lobby event");
  
  %% @doc Unknown command handler. Do nothing.
  
  
negative.code: 					Send = << 16#01020101:32, 0:32, 16#00011300:32, SrcGID:32/little-unsigned-integer, 0:64,
  						16#00011300:32, GID:32/little-unsigned-integer, 0:64, SrcGID:32/little-unsigned-integer,
  						LID:32/little-unsigned-integer, After/binary >>,
  					egs_proto:packet_send(CSocket, Send)
  			end,
  			?MODULE:loop(CSocket, GID, Version, SoFar);
  		{psu_broadcast_0107, Data} ->
  			<< Before:96/bits, SrcGID:32/little-unsigned-integer, Middle:224/bits, _:32, After/bits >> = Data,
  			case egs_db:users_select(SrcGID) of
  				error ->
  					ignore;
  				User ->
  					LID = User#users.lid,
  					Send = << Before/binary, SrcGID:32/little-unsigned-integer, Middle/binary, LID:32/little-unsigned-integer, After/binary >>,
  					file:write_file("sendanim.bin", Send),
  					egs_proto:packet_send(CSocket, Send)
  			end,
  			?MODULE:loop(CSocket, GID, Version, SoFar);
  