Fix satellite to fail on bad conditional
snxtsct() and snxtitem() fail when the condition argument is bad. satmap() didn't check for failure. Due to the way snxtsct() and snxtitem() work, bad condition arguments were reported and otherwise ignored.
This commit is contained in:
parent
d0a6dffa02
commit
74a69cf74c
3 changed files with 20 additions and 17 deletions
|
@ -86,8 +86,6 @@ sate(void)
|
|||
pr("Satellite Map Report:\n");
|
||||
pr("%s at ", prplane(&plane));
|
||||
tech = techfact(plane.pln_tech, 20.0);
|
||||
satmap(plane.pln_x, plane.pln_y, plane.pln_effic,
|
||||
(int)tech, plchr[(int)plane.pln_type].pl_flags, type);
|
||||
|
||||
return RET_OK;
|
||||
return satmap(plane.pln_x, plane.pln_y, plane.pln_effic,
|
||||
(int)tech, plchr[(int)plane.pln_type].pl_flags, type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue