forked from github/server
Falscher Parametertyp behoben, typo bei chance behoben.
This commit is contained in:
parent
f3f8bd811d
commit
afe4e48a30
|
@ -226,7 +226,7 @@ magicanalyse_unit(unit *u, unit *mage, int force)
|
|||
c = (curse*)a->data.v;
|
||||
/* ist der curse schwächer als der Analysezauber, so ergibt sich
|
||||
* mehr als 100% chance und damit immer ein Erfolg. */
|
||||
chance = chance = curse_chance(c, force);
|
||||
chance = curse_chance(c, force);
|
||||
mon = c->duration + (rand()%10) - 5;
|
||||
mon = max(1,mon);
|
||||
|
||||
|
@ -2867,7 +2867,7 @@ typedef struct wallcurse {
|
|||
} wallcurse;
|
||||
|
||||
void
|
||||
wall_vigour(curse* c, int delta)
|
||||
wall_vigour(curse* c, double delta)
|
||||
{
|
||||
wallcurse * wc = (wallcurse*)c->data;
|
||||
assert(wc->buddy->vigour==c->vigour);
|
||||
|
|
|
@ -31,6 +31,7 @@ LinkLibraries $(LUASERVER) :
|
|||
LINKLIBS on $(SERVER) += -lm ;
|
||||
LINKLIBS on $(LUASERVER) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ;
|
||||
LINKLIBS on $(LUASERVER) += -lm -lluabind -ldl -lstdc++ ;
|
||||
# -Wl,-R,$(HOME)/software/$(HOST)/lib ;
|
||||
|
||||
if $(HAVE_LUA) {
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ;
|
||||
|
|
|
@ -57,13 +57,13 @@ faction_getalliance(const faction& f)
|
|||
{
|
||||
return f.alliance;
|
||||
}
|
||||
#endif
|
||||
|
||||
const char *
|
||||
faction_locale(const faction& f)
|
||||
{
|
||||
return locale_name(f.locale);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
bind_faction(lua_State * L)
|
||||
|
|
Loading…
Reference in New Issue