diff options
author | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-14 04:29:12 +0000 |
---|---|---|
committer | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-14 04:29:12 +0000 |
commit | c37d7eeeee88afcc43ded14b60674e5f3a3e54b2 (patch) | |
tree | 3b8b82706fc6502c5273e996205c939f037ab5f2 /src/map/npc.c | |
parent | 30217193806701eb2e6159359f14bf9658d8a668 (diff) | |
download | hercules-c37d7eeeee88afcc43ded14b60674e5f3a3e54b2.tar.gz hercules-c37d7eeeee88afcc43ded14b60674e5f3a3e54b2.tar.bz2 hercules-c37d7eeeee88afcc43ded14b60674e5f3a3e54b2.tar.xz hercules-c37d7eeeee88afcc43ded14b60674e5f3a3e54b2.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@568 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 8f4716ca2..d760099ef 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2219,11 +2219,13 @@ void ev_release(struct dbn *db, int which) */ int do_init_npc(void) { - ShowStatus("Loading NPCs...\n"); struct npc_src_list *nsl; FILE *fp; char line[1024]; int m,lines; + time_t last_time = time(0); + int busy = 0; + char c = '-'; ev_db=strdb_init(24); npcname_db=strdb_init(24); @@ -2295,6 +2297,19 @@ int do_init_npc(void) } } fclose(fp); + printf("\r"); + ShowStatus("Loading NPCs... Working: "); + if (last_time != time(0)) { + last_time = time(0); + switch(busy) { + case 0: c='\\'; busy++; break; + case 1: c='|'; busy++; break; + case 2: c='/'; busy++; break; + case 3: c='-'; busy=0; + } + } + printf("[%c]",c); + fflush(stdout); // printf("\rLoading NPCs [%d]: %-54s",npc_id-START_NPC_NUM,nsl->name); // fflush(stdout); } |