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 8cabbd5 commit 3f1986e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions adm/daemons/masterd.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public mixed give_item(object who, object ob, mapping b)
string msg; // 对于某些返回信息的描述
string sk1, sk2, sk3; // 所需要的武功名称
int lv1, lv2, lv3; // 所对应的武功等级
int free; // 是否为公共物品派送
// int free; // 是否为公共物品派送
int master; // 是否只有直属弟子才能领取
int generation; // 门派中的辈份要求
string family; // 给予物品者的门派
Expand Down Expand Up @@ -519,4 +519,4 @@ public mixed give_item(object who, object ob, mapping b)
obj->name() + CYN "你就暂时拿去吧。" NOR;

return msg;
}
}
8 changes: 4 additions & 4 deletions adm/daemons/ultra_questd.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ void check_going(object me, object who)
int need_accede(object me, object who)
{
string skill, ma, wa;
string suc_msg, fai_msg, msg;
string suc_msg, fai_msg/*, msg*/;
int lvl;

// 准备比较的技能属性
Expand Down Expand Up @@ -1061,8 +1061,8 @@ int need_accede(object me, object who)
// 接受任务需求的物品
int accept_object(object me, object who, object ob)
{
string msg;
string type, obj;
// string msg;
string type/*, obj*/;

// 如果没有领取任务
if (! who->query("ultra_quest/quest"))
Expand Down Expand Up @@ -1318,4 +1318,4 @@ public void generate_information(object me)
tell_object(me, sort_msg(msg));

return;
}
}
10 changes: 5 additions & 5 deletions adm/npc/beastseller.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void get_subtype(string arg, object ob)
void get_gender(string arg, object ob)
{
int n;
object beast;
// object beast;

sscanf(arg, "%d", n);

Expand Down Expand Up @@ -362,8 +362,8 @@ void build_beast(object ob)

int accept_object(object me, object ob)
{
string filename;
string file;
// string filename;
// string file;


if (me->query_skill("training", 1) < 30)
Expand Down Expand Up @@ -436,7 +436,7 @@ int check_legal_id(string id)
int check_legal_name(string name, int max_len)
{
int i;
string *legalname; //not implemented..may add later
// string *legalname; //not implemented..may add later

i = strlen(name);
if ((strlen(name) < 2) || (strlen(name) > max_len ))
Expand Down Expand Up @@ -465,4 +465,4 @@ int recognize_apprentice(object me, string skill)
return 1;
else
return 0;
}
}
Loading

0 comments on commit 3f1986e

Please sign in to comment.