Permalink
Browse files

add another console command

git-svn-id: svn://svn.code.sf.net/p/marathon/code/trunk@2876 a75d40c9-0969-4759-85e5-97cb871b7ed4
  • Loading branch information...
ghs
ghs committed Nov 25, 2006
1 parent 933061c commit 515551f3ffecf666791068fc58e33034933a4995
Showing with 9 additions and 0 deletions.
  1. +9 −0 Source_Files/Network/network.cpp
@@ -214,6 +214,13 @@ struct toggle_ping_display {
};
};
struct send_falg_message {
void operator()(const std::string&) const {
if (chatCallbacks)
chatCallbacks->SendChatMessage("GERT HLIM AD GT THE FALG!");
}
};
// ZZZ note: very few folks touch the streaming data, so the data-format issues outlined above with
// datagrams (the data from which are passed around, interpreted, and touched by many functions)
// don't matter as much. Do observe, though, that users of the "distribution" mechanism will have
@@ -1101,6 +1108,7 @@ bool NetEnter(void)
// net commands!
sDisplayPings = false;
Console::instance()->register_command("ping", toggle_ping_display());
Console::instance()->register_command("falg", send_falg_message());
next_join_attempt = machine_tick_count();
@@ -1190,6 +1198,7 @@ void NetExit(
#endif
Console::instance()->unregister_command("ping");
Console::instance()->unregister_command("falg");
NetDDPClose();

0 comments on commit 515551f

Please sign in to comment.