Skip to content

Commit

Permalink
清理未用变量
Browse files Browse the repository at this point in the history
  • Loading branch information
oiuv committed Nov 18, 2020
1 parent 75187cf commit 44422fc
Show file tree
Hide file tree
Showing 68 changed files with 2,894 additions and 2,776 deletions.
6 changes: 3 additions & 3 deletions adm/daemons/autosaved.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ HIG"殷天正:“老夫内功修为差强人意,火蟾之功却也不小。
泥潭挚友长相思"*/
});
string hui_chun, yan_yang;
int huichun, yanyang, usernum, i, t, e, p;
int huichun, yanyang, usernum, i;
object *ob, *inv;
object linkob;

message("channel:snow", HIY"【风闻】"+ms[random(sizeof(ms))]+"\n"NOR,users());
if (file_size("/d/shenlong/cangku.c"))
Expand Down Expand Up @@ -165,4 +165,4 @@ void haojie()
message("channel:snow",HIM"【谣言】江湖。。。一个充满神秘和危险的世界,太久的平静似乎预示着暴风雨来\n临的前夕,人在江湖,身不由己,总是要去面对一次一次的挑战和危机,谁又能知道明\n天是否依然是如此的安宁呢?\n\n"NOR,users());
message("channel:snow",HIM"【谣言】江湖上最近出现一个神秘组织,妄想消灭各门派,一统江湖。\n\n\n"NOR,users());
DISASTER_D->disaster(0);
}
}
5 changes: 2 additions & 3 deletions adm/daemons/band.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// Copyright (C) 1995, by Tie Yu and Daniel Yu. All rights reserved.
// This software can not be used, copied, or modified in any form without
// the written permission from authors.
Expand Down Expand Up @@ -181,7 +180,7 @@ void add(string site, mixed num)

void delete(string site, mixed num)
{
int i, add_flag = 0;
int i;
string *k_site;

if (site == "clear") {
Expand Down Expand Up @@ -254,4 +253,4 @@ void record_list(mapping sites, string file)
if (sites)
for (i=0; i<sizeof(keys(sites)); i++)
write_file(file, keys(sites)[i] + " " + values(sites)[i] + "\n", 0);
}
}
4 changes: 2 additions & 2 deletions adm/daemons/chard.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void setup_char(object ob)
varargs object make_corpse(object victim, object killer)
{
int i;
object corpse, mengzhu, room, *inv;
object corpse, *inv;

if( victim->is_ghost() ) {
inv = all_inventory(victim);
Expand Down Expand Up @@ -216,4 +216,4 @@ int break_relation(object player)
}

return 1;
}
}
4 changes: 2 additions & 2 deletions adm/daemons/eventd.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void heart_beat()
{
mixed *lt;
object eob;
int tt,i,num;
int i,num;
int month,day,hour;
string time;

Expand Down Expand Up @@ -91,4 +91,4 @@ void heart_beat()
continue;
}
}
}
}
6 changes: 3 additions & 3 deletions adm/daemons/fingerd.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ string age_string(int time)
string finger_all()
{
object *ob;
string msg, fip;
string msg;
int i;

// ob = users();
Expand Down Expand Up @@ -69,7 +69,7 @@ string finger_all()
string finger_user(string name)
{
object ob, body;
string msg, mud;
string msg;
int public_flag;
int no_wiz;

Expand Down Expand Up @@ -233,4 +233,4 @@ string get_killer()
int sort_user(object ob1, object ob2)
{
return strcmp(query_ip_name(ob1), query_ip_name(ob2));
}
}
6 changes: 3 additions & 3 deletions adm/daemons/mapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ public string marked_map(object env)
// 玩家纪录传闻
public int record_rumor(mixed obs, string topic, mixed event_ob)
{
object ob;

string title;
int n, i;
int n;

if (objectp(obs)) obs = ({ obs }); else
if (! arrayp(obs)) return 0;
Expand Down Expand Up @@ -623,4 +623,4 @@ public varargs mixed query_trans_info(string to)
public mapping query_connect_info()
{
return connect_info;
}
}
7 changes: 3 additions & 4 deletions adm/daemons/natured.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ object create_thief( )
}
void event_morning()
{
string *dir, *file, place;
string *dir, *file;
object yinshi;
object room;
int i,j,flag=0;
int i,j;

thief_yinshi=1;
yinshi=create_thief();
Expand Down Expand Up @@ -397,7 +397,7 @@ void event_dawn()
void event_noon()
{
object *ob;
int i, skill,con,con1,con2,con3;
int i,con,con1,con2,con3;
string get_month,ill,msg;
get_month = CHINESE_D->chinese_month(TIME_TICK);
switch(get_month)
Expand Down Expand Up @@ -498,4 +498,3 @@ mapping *read_table(string file)
}

mapping *query_day_phase() { return day_phase; }

Loading

0 comments on commit 44422fc

Please sign in to comment.