forked from github/server
fix CRLF massacre
This commit is contained in:
parent
9c8779b303
commit
610c6799ea
1 changed files with 205 additions and 205 deletions
|
@ -446,7 +446,7 @@ static int
tolua_levitate_ship(lua_State * L)
|
||||||
|
|
||||||
|
|
||||||
#endif /* */
|
#endif /* */
|
||||||
static int
tolua_spawn_braineaters(lua_State * L)
|
static int tolua_spawn_braineaters(lua_State * L)
|
||||||
{
|
{
|
||||||
float chance = (float)tolua_tonumber(L, 1, 0);
|
float chance = (float)tolua_tonumber(L, 1, 0);
|
||||||
spawn_braineaters(chance);
|
spawn_braineaters(chance);
|
||||||
|
@ -709,7 +709,7 @@ static int
tolua_levitate_ship(lua_State * L)
|
||||||
#include <util/functions.h>
|
#include <util/functions.h>
|
||||||
#include <util/xml.h>
|
#include <util/xml.h>
|
||||||
#include <kernel/spell.h>
|
#include <kernel/spell.h>
|
||||||
static int
tolua_write_spells(lua_State * L)
|
static int tolua_write_spells(lua_State * L)
|
||||||
{
|
{
|
||||||
spell_f fun = (spell_f) get_function("lua_castspell");
|
spell_f fun = (spell_f) get_function("lua_castspell");
|
||||||
const char *filename = "magic.xml";
|
const char *filename = "magic.xml";
|
||||||
|
@ -740,7 +740,7 @@ static int
tolua_levitate_ship(lua_State * L)
|
||||||
xmlNewProp(cnode, BAD_CAST "amount", xml_i(comp->amount));
|
xmlNewProp(cnode, BAD_CAST "amount", xml_i(comp->amount));
|
||||||
xmlNewProp(cnode, BAD_CAST "cost", BAD_CAST costs[comp->cost]);
|
xmlNewProp(cnode, BAD_CAST "cost", BAD_CAST costs[comp->cost]);
|
||||||
xmlAddChild(node, cnode);
|
xmlAddChild(node, cnode);
|
||||||
}
}
|
}}
|
||||||
if (sp->sptyp & TESTCANSEE) {
|
if (sp->sptyp & TESTCANSEE) {
|
||||||
xmlNewProp(node, BAD_CAST "los", BAD_CAST "true");
|
xmlNewProp(node, BAD_CAST "los", BAD_CAST "true");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue