Feature #624 ยป 0079-server-scripting-Clear-trailing-spaces.patch
| server/scripting/api_server_edit.c | ||
|---|---|---|
|
{
|
||
|
LUASCRIPT_CHECK_STATE(L);
|
||
|
LUASCRIPT_CHECK_ARG_NIL(L, punit, 2, Unit);
|
||
|
|
||
|
if (direction8_is_valid(dir)) {
|
||
|
punit->facing = dir;
|
||
| ... | ... | |
|
} else if (cost == -3) {
|
||
|
cost = game.server.diplbulbcost;
|
||
|
} else {
|
||
|
|
||
|
cost = 0;
|
||
|
}
|
||
|
}
|
||
| server/scripting/script_server.c | ||
|---|---|---|
|
}
|
||
|
return 1;
|
||
|
}
|
||
|
}
|
||
|
/***********************************************************************//**
|
||
|
Parse and execute the script at filename in the context of the specified
|
||
| server/scripting/tolua_server.pkg | ||
|---|---|---|
|
function notify.research(player, selfmsg, event, ...)
|
||
|
local arg = table.pack(...);
|
||
|
notify.research_msg(player, selfmsg, event, string.format(table.unpack(arg)))
|
||
|
notify.research_msg(player, selfmsg, event, string.format(table.unpack(arg)))
|
||
|
end
|
||
|
function notify.research_embassies(player, event, ...)
|
||
|
local arg = table.pack(...);
|
||
|
notify.research_embassies_msg(player, event, string.format(table.unpack(arg)))
|
||
|
notify.research_embassies_msg(player, event, string.format(table.unpack(arg)))
|
||
|
end
|
||
|
$]
|
||
| ... | ... | |
|
return edit.unit_teleport(self, dest, nil, false,
|
||
|
false, false, false, false)
|
||
|
else
|
||
|
return edit.unit_teleport(self, dest,
|
||
|
return edit.unit_teleport(self, dest,
|
||
|
embark_to, allow_disembark,
|
||
|
conquer_city, conquer_extra,
|
||
|
enter_hut, frighten_hut)
|
||