cleaning up a little, no change to logic

This commit is contained in:
Enno Rehling 2010-09-02 23:29:33 -07:00
parent db8f2f7d0c
commit f934772a66

View file

@ -37,6 +37,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* attributes includes */ /* attributes includes */
#include <attributes/racename.h> #include <attributes/racename.h>
#include <attributes/otherfaction.h>
/* util includes */ /* util includes */
#include <util/attrib.h> #include <util/attrib.h>
@ -52,8 +53,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <attributes/otherfaction.h>
/* in spy steht der Unterschied zwischen Wahrnehmung des Opfers und /* in spy steht der Unterschied zwischen Wahrnehmung des Opfers und
* Spionage des Spions */ * Spionage des Spions */
void void
@ -202,7 +201,7 @@ int
setstealth_cmd(unit * u, struct order * ord) setstealth_cmd(unit * u, struct order * ord)
{ {
const char *s; const char *s;
int level; int level, rule;
const race * trace; const race * trace;
init_tokens(ord); init_tokens(ord);
@ -257,7 +256,8 @@ setstealth_cmd(unit * u, struct order * ord)
switch(findparam(s, u->faction->locale)) { switch(findparam(s, u->faction->locale)) {
case P_FACTION: case P_FACTION:
/* TARNE PARTEI [NICHT|NUMMER abcd] */ /* TARNE PARTEI [NICHT|NUMMER abcd] */
if (!rule_stealth_faction()) break; rule = rule_stealth_faction();
if (!rule) break;
s = getstrtoken(); s = getstrtoken();
if(!s || *s == 0) { if(!s || *s == 0) {
fset(u, UFL_ANON_FACTION); fset(u, UFL_ANON_FACTION);
@ -283,10 +283,8 @@ setstealth_cmd(unit * u, struct order * ord)
} }
break; break;
case P_ANY: case P_ANY:
/* TARNE ALLES (was nicht so alles geht?) */
u_seteffstealth(u, -1);
break;
case P_NOT: case P_NOT:
/* TARNE ALLES (was nicht so alles geht?) */
u_seteffstealth(u, -1); u_seteffstealth(u, -1);
break; break;
default: default:
@ -479,4 +477,3 @@ sabotage_cmd(unit * u, struct order * ord)
return 0; return 0;
} }