forked from github/server
fix linux build, kill invalid assert
This commit is contained in:
parent
de808bf146
commit
66d8e3c7ba
|
@ -11,6 +11,8 @@
|
||||||
#include <kernel/item.h>
|
#include <kernel/item.h>
|
||||||
#include <kernel/region.h>
|
#include <kernel/region.h>
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
#include <CuTest.h>
|
#include <CuTest.h>
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#include <util/attrib.h>
|
#include <util/attrib.h>
|
||||||
#include <attributes/stealth.h>
|
#include <attributes/stealth.h>
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
attrib_type at_stealth = {
|
attrib_type at_stealth = {
|
||||||
|
@ -49,8 +48,6 @@ int u_geteffstealth(const unit *u)
|
||||||
int eff_stealth(const unit * u, const region * r)
|
int eff_stealth(const unit * u, const region * r)
|
||||||
{
|
{
|
||||||
int e = 0;
|
int e = 0;
|
||||||
|
|
||||||
assert(u->region == r); // TODO: param r is useless
|
|
||||||
/* Auf Schiffen keine Tarnung! */
|
/* Auf Schiffen keine Tarnung! */
|
||||||
if (!u->ship && skill_enabled(SK_STEALTH)) {
|
if (!u->ship && skill_enabled(SK_STEALTH)) {
|
||||||
e = effskill(u, SK_STEALTH, r);
|
e = effskill(u, SK_STEALTH, r);
|
||||||
|
|
Loading…
Reference in New Issue