projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8273c13
)
OK, now we implement command suppression by options.
author
Eric S. Raymond
<esr@thyrsus.com>
Mon, 7 Feb 2005 06:25:54 +0000
(06:25 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Mon, 7 Feb 2005 06:25:54 +0000
(06:25 +0000)
sst.c
patch
|
blob
|
history
diff --git
a/sst.c
b/sst.c
index c97204b0c1ccdec6a25cdec2ef8918a74c62fbab..dd73713dc7a3d1ac8a56cff1d8b5b0d7d35a7893 100644
(file)
--- a/
sst.c
+++ b/
sst.c
@@
-13,27
+13,27
@@
Dave Matuszek says:
Dave Matuszek says:
- SRSCAN, MOVE, PHASERS, CALL, STATUS, IMPULSE, PHOTONS, ABANDON,
- LRSCAN, WARP, SHIELDS, DESTRUCT, CHART, REST, DOCK, QUIT, and DAMAGE
- were in the original non-"super" version.
+
SRSCAN, MOVE, PHASERS, CALL, STATUS, IMPULSE, PHOTONS, ABANDON,
+
LRSCAN, WARP, SHIELDS, DESTRUCT, CHART, REST, DOCK, QUIT, and DAMAGE
+
were in the original non-"super" version.
- Tholians weren't in the original. Dave is dubious about their merits.
- There weren't even planets. He says the bit about the Galileo getting
- turned into a McDonald's is "consistant with our original vision".
+ Tholians weren't in the original. Dave is dubious about their merits.
- Dilithium crystals weren't in the original. Dave is OK with this idea.
+ Planets and dilithium crystals weren't in the original. Dave is OK
+ with this idea. He says the bit about the Galileo getting
+ turned into a McDonald's is "consistant with our original vision".
- Dave also says the Space Thingy should not be preserved across saved games,
-
so you can't prove to others that you've seen it. He says it shouldn'
t
- fire back, either. It should so nothing except scream and disappear
- when hit by photon torpedos. It's OK that it moves when rammed, but it
- didn't in the original.
+ Dave also says the Space Thingy should not be preserved across saved
+
games, so you can't prove to others that you've seen it. He says i
t
+ shouldn't fire back, either. It should do nothing except scream and
+ disappear when hit by photon torpedos. It's OK that it may move
+
when attacked, but it
didn't in the original.
-
The Faerie Queen was
in the original.
+
The Faerie Queen, black holes, and time warping were
in the original.
Here are Tom Almy's changes:
Here are Tom Almy's changes:
- Compared to original version, I've changed the "help" command to
+
Compared to original version, I've changed the "help" command to
"call" and the "terminate" command to "quit" to better match
user expectations. The DECUS version apparently made those changes
as well as changing "freeze" to "save". However I like "freeze".
"call" and the "terminate" command to "quit" to better match
user expectations. The DECUS version apparently made those changes
as well as changing "freeze" to "save". However I like "freeze".
@@
-303,7
+303,7
@@
void enqueue(char *s)
static void makemoves(void)
{
static void makemoves(void)
{
- int i, v, hitme;
+ int i, v
= 0
, hitme;
clrscr();
setwnd(message_window);
while (TRUE) { /* command loop */
clrscr();
setwnd(message_window);
while (TRUE) { /* command loop */
@@
-330,7
+330,8
@@
static void makemoves(void)
v = commands[i].value;
break;
}
v = commands[i].value;
break;
}
- if (i < ABANDON) break;
+ if (i < ABANDON && (!commands[i].option || (commands[i].option & game.options)))
+ break;
for (; i < NUMCOMMANDS; i++)
if (strcasecmp(commands[i].name, citem) == 0) {
v = commands[i].value;
for (; i < NUMCOMMANDS; i++)
if (strcasecmp(commands[i].name, citem) == 0) {
v = commands[i].value;