Skip to content

Commit

Permalink
整理代码,注释未使用的局部变量
Browse files Browse the repository at this point in the history
  • Loading branch information
oiuv committed Jan 20, 2019
1 parent 3f1986e commit 3aa1562
Show file tree
Hide file tree
Showing 91 changed files with 775 additions and 793 deletions.
4 changes: 2 additions & 2 deletions b/yitian/npc/ada.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ int begin()
void unconcious()
{
object ob;
object me = this_player();
// object me = this_player();

if (objectp(query("anti")))
{
Expand Down Expand Up @@ -202,4 +202,4 @@ void unconcious()

}
::die();
}
}
3 changes: 1 addition & 2 deletions b/yitian/npc/zhao.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int do_yun(string arg)

int do_get(string arg)
{
object obj, env, shelf;
object obj/*, env, shelf*/;
string what, where;

if (! arg) return 0;
Expand Down Expand Up @@ -159,4 +159,3 @@ void greeting(object ob)
command("yi");
command("say 哼,今天来我这里添乱的人还真不少!");
}

8 changes: 4 additions & 4 deletions clone/book/kuihua.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ int do_du(string arg)
{
object me = this_player();
object where = environment(me);
object ob;
mapping skill;
int plvl, con, improve;
// object ob;
// mapping skill;
int plvl, con/*, improve*/;
int neili_lost;

if (! arg || ! id(arg))
Expand Down Expand Up @@ -161,4 +161,4 @@ int do_du(string arg)
me->start_busy(random(1) + 1);
write("你研读「葵花宝典」,颇有心得。\n");
return 1;
}
}
4 changes: 2 additions & 2 deletions clone/fam/etc/prize5.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int do_drink(string arg)
{
object me = this_player();

string mapsk;
// string mapsk;
int na, un;
mapping my = me->query_entire_dbase();

Expand Down Expand Up @@ -57,4 +57,4 @@ int do_drink(string arg)
int query_autoload()
{
return 1;
}
}
2 changes: 1 addition & 1 deletion clone/fam/max/longjia.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int do_effect(object me)
{
string mapsk;
int effect;
int neili;
// int neili;

log_file("static/using", sprintf("%s(%s) eat 子午龙甲丹 at %s.\n",
me->name(1), me->query("id"), ctime(time())));
Expand Down
4 changes: 2 additions & 2 deletions clone/fam/max/naobaijin.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int do_effect(object me)
{
string mapsk;
int effect;
int neili;
// int neili;

log_file("static/using", sprintf("%s(%s) eat 脑白金 at %s.\n",
me->name(1), me->query("id"), ctime(time())));
Expand Down Expand Up @@ -60,4 +60,4 @@ int do_effect(object me)
me->add("magic_points", 500);
destruct(this_object());
return 1;
}
}
2 changes: 1 addition & 1 deletion clone/fam/max/xuanhuang.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int do_effect(object me)
{
string mapsk;
int effect;
int neili;
// int neili;

log_file("static/using", sprintf("%s(%s) eat 玄黄紫箐丹 at %s.\n",
me->name(1), me->query("id"), ctime(time())));
Expand Down
2 changes: 1 addition & 1 deletion clone/fam/max/zhenyu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int do_effect(object me)
{
string mapsk;
int effect;
int neili;
// int neili;

log_file("static/using", sprintf("%s(%s) eat 镇狱惊天丸 at %s.\n",
me->name(1), me->query("id"), ctime(time())));
Expand Down
5 changes: 2 additions & 3 deletions clone/game/dhs.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ string build_se(object who)
mixed *s;
string r,t;
int i,y,num;
object ob;
// object ob;

if(!who)
return "";
Expand Down Expand Up @@ -497,7 +497,7 @@ int do_guess(string arg)
int n,p,ok;
object ob;
object me;
string nextone;
// string nextone;

me = this_player();
if(!is_playing(me))
Expand Down Expand Up @@ -824,4 +824,3 @@ HELP
);
return 1;
}

67 changes: 33 additions & 34 deletions clone/game/pai.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void reset_pai()

int reset_all()
{
int i;
// int i;

has_start = 0;
if(sizeof(player)!=0)
Expand Down Expand Up @@ -239,8 +239,8 @@ int do_reset(string arg)

int do_restart(string arg)
{
int i;
string* key;
// int i;
// string* key;

if(!is_playing(this_player()))
return notify_fail("你都不玩,开始什么啊!\n");
Expand Down Expand Up @@ -329,7 +329,7 @@ int do_xipai(string arg)

int do_sortpai(string arg)
{
int i,sum,which,v=0,j,it;
int i,sum/*,which*/,v=0,j,it;
int c1,c2;
string temp;
mixed* pai;
Expand Down Expand Up @@ -465,7 +465,7 @@ int do_paipai(string arg)
{
int i,sum,j;
string* key;
string cmd;
// string cmd;


if(!is_playing(this_player()))
Expand All @@ -490,9 +490,9 @@ int do_paipai(string arg)

int do_mopai(string arg)
{
int i,sum,j;
string* key;
string cmd;
// int i,sum,j;
// string* key;
// string cmd;

if(!is_playing(this_player()))
return notify_fail("你都不玩啊!\n");
Expand All @@ -502,9 +502,9 @@ int do_mopai(string arg)

int do_chupai(string arg)
{
int i,sum,j,done,temp;
int /*i,*/sum/*,j*/,done/*,temp*/;
mixed* inv;
string cmd;
// string cmd;
object ob;

if(!is_playing(this_player()))
Expand Down Expand Up @@ -565,10 +565,10 @@ int do_chupai(string arg)

int do_showpai(string arg)
{
int i,sum,j;
string* key;
string cmd;
object ob;
// int i,sum,j;
// string* key;
// string cmd;
// object ob;

if(!is_playing(this_player()))
return notify_fail("你都不玩啊!\n");
Expand All @@ -585,10 +585,10 @@ int do_showpai(string arg)

int do_hidepai(string arg)
{
int i,sum,j;
string* key;
string cmd;
object ob;
// int i,sum,j;
// string* key;
// string cmd;
// object ob;

if(!is_playing(this_player()))
return notify_fail("你都不玩啊!\n");
Expand All @@ -605,10 +605,10 @@ int do_hidepai(string arg)

int do_takebackpai(string arg)
{
int i,sum,j;
string* key;
// int i,sum,j;
// string* key;
string cmd,where;
object ob;
// object ob;

if(!is_playing(this_player()))
return notify_fail("你都不玩啊!\n");
Expand Down Expand Up @@ -680,7 +680,7 @@ string extra_long()
int pick_out(string from, int id)
{
int i,j,s;
string* p;
// string* p;
mixed* pai;

pai = get_pais(from);
Expand All @@ -707,7 +707,7 @@ int pick_out(string from, int id)
int pick_out2(string from, int id)
{
int i,j,s;
string* p;
// string* p;
mixed* pai;

pai = get_pais(from);
Expand Down Expand Up @@ -793,7 +793,7 @@ object get_player(string id)

int is_playing(object ob)
{
int i;
// int i;
string id;
id = ob->query("id");
if(stringp(player[id]))
Expand Down Expand Up @@ -868,7 +868,7 @@ int valid_show(object who,string which)
string view_pai(object who,string which)
{
mixed* pai;
int show_all,i,j;
int /*show_all,*/i/*,j*/;
string s,p;

pai = get_pais(which);
Expand Down Expand Up @@ -958,10 +958,10 @@ int do_removej(string arg)

int do_pass(string arg)
{
string old,str;
string old/*,str*/;
string* key;
mixed* inv;
int i,temp;
// mixed* inv;
int i/*,temp*/;

if(!is_playing(this_player()))
return notify_fail("你都不玩牌啊!\n");
Expand Down Expand Up @@ -1015,7 +1015,7 @@ int do_end(string arg)
mixed* pai;
string* p;
int i;
object ob;
// object ob;

if(!is_playing(this_player()))
return notify_fail("你都不玩牌啊!\n");
Expand Down Expand Up @@ -1120,8 +1120,8 @@ void auto_order()

int do_setmode(string arg)
{
int vmode = 0,i;
mixed* inv;
int vmode = 0/*,i*/;
// mixed* inv;

if(!arg)
return notify_fail("setmode [模式] 请参照帮助。\n");
Expand Down Expand Up @@ -1244,7 +1244,7 @@ int do_removec(string arg)

int do_paipai2(string arg)
{
int i;
// int i;

if(!is_playing(this_player()))
return notify_fail("你都不玩啊!\n");
Expand All @@ -1259,7 +1259,7 @@ int do_paipai2(string arg)

int do_daopai(string arg)
{
int i;
// int i;

if(!is_playing(this_player()))
return notify_fail("你都不玩,开始什么啊!\n");
Expand Down Expand Up @@ -1383,4 +1383,3 @@ void finish_21()
msg(r);
who_play = 0;
}

Loading

0 comments on commit 3aa1562

Please sign in to comment.