From ba560c861e8b79f9cfd71be49c55282a3eaf212c Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Wed, 30 Jan 2008 13:15:58 +0000 Subject: animated console, added log messages for team changes and ctf flag events --- src/engine/client/ec_client.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/engine') diff --git a/src/engine/client/ec_client.c b/src/engine/client/ec_client.c index b1399645..52dbd3fc 100644 --- a/src/engine/client/ec_client.c +++ b/src/engine/client/ec_client.c @@ -1210,8 +1210,44 @@ static void client_run() int editor_main(int argc, char **argv); +#include "../e_ringbuffer.h" + int main(int argc, char **argv) { + RINGBUFFER *buf; + char data[65536]; + int i; + + buf = rb_init(data, sizeof(data)); + + static char *texts[] = + { + "Hej", + "Påå", + "Dig", + "Min", + "Fin", + "Tje", + "Je!", + "Lol", + "Osv", + "Tam", + "Rof" + }; + + for (i = 0; i < 1000000; i++) + { + RBITEM *item = rb_allocate(buf, 4); + strcpy(item->data, texts[i & 10]); + + for (item = rb_first(buf); item != rb_last(buf); item = item->next) + { + printf("lol\n"); + } + } + + + /* preinit the mod */ modc_preinit(); -- cgit 1.4.1