projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Abstract all references to the future array (outside of events.c) away.
[super-star-trek.git]
/
src
/
sst.c
diff --git
a/src/sst.c
b/src/sst.c
index 21c803e770c362e3b494d6ba0e6b818387fad743..32208d8cf557d1ba37798ebcdade5b36e0741bd4 100644
(file)
--- a/
src/sst.c
+++ b/
src/sst.c
@@
-848,7
+848,7
@@
void debugme(void)
int i;
for (i = 1; i < NEVENTS; i++) {
int key;
int i;
for (i = 1; i < NEVENTS; i++) {
int key;
- if (
game.future[i] == FOREVER
) continue;
+ if (
!is_scheduled(i)
) continue;
switch (i) {
case FSNOVA: proutn("Supernova "); break;
case FTBEAM: proutn("T Beam "); break;
switch (i) {
case FSNOVA: proutn("Supernova "); break;
case FTBEAM: proutn("T Beam "); break;
@@
-858,12
+858,12
@@
void debugme(void)
case FSCMOVE: proutn("SC Move "); break;
case FSCDBAS: proutn("SC Base Destroy "); break;
}
case FSCMOVE: proutn("SC Move "); break;
case FSCDBAS: proutn("SC Base Destroy "); break;
}
- proutn("%.2f",
game.future[i]
-game.state.date);
+ proutn("%.2f",
scheduled(i)
-game.state.date);
chew();
proutn(" ?");
key = scan();
if (key == IHREAL) {
chew();
proutn(" ?");
key = scan();
if (key == IHREAL) {
-
game.future[i] = game.state.date + aaitem
;
+
schedule(i, aaitem)
;
}
}
chew();
}
}
chew();