a2ed975ec2
Clean up more unreadable assignments within if conditionals
2009-03-23 23:11:14 +01:00
35ef345ecb
Update copyright notice
2009-02-08 09:33:18 +01:00
d702068457
Fix trailing whitespace
2008-09-17 21:31:40 -04:00
c20ac26ecc
Fix improve not to spend more money than available
...
improve() attempted not to spend the last dollar, but screwed up when
improving more than one sector. This could bankrupt the player.
Replace the flawed code by the same simple method that is used
elsewhere: break the loop when there's not enough money left for the
current sector.
2008-08-09 08:40:04 -04:00
db02dda32f
Update copyright notice
2008-01-19 10:15:37 +01:00
63bdc89835
Update copyright notice.
2007-01-09 19:09:31 +00:00
e42053d928
Break inclusion cycle: prototypes.h and commands.h included each
...
other. Ensure headers in include/ can be included in any order
(except for econfig-spec.h, which is special). New header types.h to
help avoid inclusion cycles. Sort include directives. Remove some
superflous includes.
2006-07-10 06:37:23 +00:00
4d1dd6fa6a
(sctintrins): New member in_enable. Update infra.config. Use it
...
instead of opt_DEFENSE_INFRA.
(improve): Test for it.
(show_sect_build): Show only enabled infrastructure.
(opt_DEFENSE_INFRA): Remove. Deities can edit infra.config instead.
(improve): Dumb down prompt.
2006-06-16 18:39:35 +00:00
2ae6be9af6
(num_teles, redir_fp, pipe_fp, exec_fd, sendeof, prompt, command)
...
(ac_intercept, all_missiles, ac_planedamage, ac_doflak, ac_landflak)
(ac_shipflak, ac_fireflak, can_fly, do_evade, att_calcodds)
(emp_setbitmap, lnd_hit_mine, conditions, get_wp, daemonize): Internal
linkage.
2006-05-20 13:54:45 +00:00
499e19f97b
(improve): Fix unsafe use of opt_DEFENSE_INFRA as array subscript.
2006-05-20 11:04:00 +00:00
a988b907fc
s_char purge directed by compiler warnings.
2006-04-29 06:41:45 +00:00
4515b84c59
COPYING duplicates information from README. Remove. Move GPL from
...
LICENSE to COPYING, because that's where it usually is. Update all
the references to these files.
2006-01-21 19:48:41 +00:00
3e400c018c
Update copyright notice.
2006-01-05 13:36:57 +00:00
3aebb68ee7
Include config.h.
2005-12-27 18:04:19 +00:00
b19c2a6c03
(nullify_objects): Patch intrchr[] according to opt_NO_LCMS,
...
opt_NO_HCMS. This fixes output of `show se b', which used not to
reflect these options.
(improve): Simplify.
2005-11-04 18:09:08 +00:00
345ad3dfe0
Update copyright notice.
2005-03-16 22:03:16 +00:00
Marc Olzheim
e9a040adb9
Do not include var.h where no longer needed. Clean up register keywords in these file at the same time. No functional changes.
2004-10-12 20:08:51 +00:00
fac342ed49
Update copyright notice.
2004-09-07 15:07:16 +00:00
b74f48fcc9
(improve): Fix confusing diagnostics when refusing to improve defense
...
because option DEFENSE_INFRA is off.
(improve): Simplify use of `value' to avoid compiler warning.
2004-08-24 08:23:09 +00:00
2a3b29ebe1
(improve, shoo, spy, buildeff): Work directly on item arrays instead
...
of copies made by getvec(). This is safe, because the old code made
single copies and always flushed them back into the unit structures
before flushing those.
2004-03-09 19:26:02 +00:00
46da1aec7a
deity.h is redundant, remove it.
2004-02-20 20:34:43 +00:00
b5401d9dd4
<string.h> is ISO C, no need to #if it.
2004-02-19 10:05:53 +00:00
9b7adfbecc
Indented with src/scripts/indent-emp.
2003-09-02 20:48:48 +00:00
d8b7fdfae1
Import of Empire 4.2.12
2003-08-23 12:23:04 +00:00