#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "merc.h"
#include <time.h>
Include dependency graph for twiddle.c:

Go to the source code of this file.
Functions | |
| void | twiddle (void) |
Variables | |
| bool | fCopyOver |
|
|
Definition at line 8 of file twiddle.c. References system(). Referenced by boot_db(), fix_exits(), load_bans(), load_clan_data(), load_classes(), load_disabled(), load_enhanced_disable(), load_kingdom_data(), load_rooms(), load_vehicles(), and reset_room(). 00009 {
00010
00011 static int tw;
00012 static int oldtime;
00013 struct timeval t;
00014 gettimeofday(&t, NULL);
00015 if (t.tv_usec - oldtime > 0)
00016 {
00017
00018 char buf[100];
00019 if (tw == 0)
00020 sprintf(buf, "./twiddle %s", "'\e[1;31m-\e[0m'");
00021 if (tw == 1)
00022 sprintf(buf, "./twiddle %s", "'\e[1;35m/\e[0m'");
00023 if (tw == 2)
00024 sprintf(buf, "./twiddle %s", "'\e[1;33m|\e[0m'");
00025 if (tw == 3)
00026 sprintf(buf, "./twiddle %s", "'\e[1;32m\\\e[0m'");
00027 tw++;
00028 if (tw == 4)
00029 tw = 0;
00030 oldtime = t.tv_usec;
00031
00032
00033
00034 system(buf);
00035 }
00036 return;
00037
00038
00039
00040 }
|
Here is the call graph for this function:

|
|
Definition at line 371 of file comm.c. Referenced by main(). |
1.4.0