Commit graph

2187 commits

Author SHA1 Message Date
e25119e461 Don't claim which resources are renewable and which aren't, because
that's configurable.
2006-07-11 18:52:26 +00:00
26c87bb579 Document the transformation of sanctuaries into capitals or highways. 2006-07-11 18:51:08 +00:00
90b341b02d Don't refer to Innards, it's obsolete. 2006-07-11 18:49:33 +00:00
533f2806c6 Clarifications. 2006-07-11 18:48:36 +00:00
4c266e73ed Belatedly remove BIG_CITY and DEFENSE_INFRA. 2006-07-11 18:47:42 +00:00
2119e557dc (setstr): Supply missing cast. 2006-07-11 18:45:29 +00:00
c72edef30f (vers): Format string fix. 2006-07-11 18:44:33 +00:00
4dc350043e Fix the previous revision. 2006-07-11 18:42:56 +00:00
acad2240e0 Fix the previous revision (system header inclusion cleanup), it
doesn't compile on crufty old systems.
2006-07-11 18:42:08 +00:00
f4e018b6ee Back out the previous revision (system header inclusion cleanup), it
doesn't compile on crufty old systems.
2006-07-11 18:11:03 +00:00
7bddbe98a4 (bestownedpath): Failed to consider direction y due to off-by one
mistake in rev. 1.28.  Reported by Stefan Hauser.
2006-07-11 06:25:26 +00:00
Ron Koenderink
e55198f2c3 [_WIN32]: Add missing include sys/types.h to get off_t. 2006-07-11 03:16:02 +00:00
Ron Koenderink
7748e65fe6 Add missing includes config.h, prototypes.h and file.h. 2006-07-11 03:14:56 +00:00
Ron Koenderink
6d90861aae (obj_nameof): New.
(nameofitem): Remove, switch callers to to obj_nameof().
(mission, show_mission): Convert functions to use obj_nameof()
instead of nameofitem().
2006-07-10 23:14:26 +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
16a0869bb0 Fix missing include. 2006-07-10 05:46:38 +00:00
7aaf8f26b3 (coord): Unused & inappropriate, remove. 2006-07-10 04:57:03 +00:00
4b45509af0 Fix the previous revision. 2006-07-09 20:27:36 +00:00
Ron Koenderink
632f5883a1 Add missing commands.
Correct sweep command example.
2006-07-09 19:16:44 +00:00
Ron Koenderink
f874995c19 (switch_leader, switch_flagship): New.
(navi, marc): Add the ability to select a flagship or leader.
2006-07-09 18:30:13 +00:00
Ron Koenderink
df8dc6ab5a (tran_map, tran_nmap, tran_pmap): Split tran_map() into tran_nmap()
and tran_pmap() so that unit number arguments are interpreted
sensibly.  Users changed.

(display_region_map): New.
(cmd_move_map, tran_nmap, tran_pmap): Use it.
2006-07-09 18:24:31 +00:00
Ron Koenderink
f65b255d18 (move_ground): Passed junk to map callback when 'm' sub-command
wasn't followed by an argument.
2006-07-09 16:55:40 +00:00
Ron Koenderink
00f2f36b2c Remove invalid example for sweeping mines.
Fix the grammer.
2006-07-09 16:25:41 +00:00
Ron Koenderink
5ea9060132 (mission, build_mission_list_type, show_mission, oprange): Remove the
type parameter as it can be determined from the empobj parameter.

(oprange): Remove getting the unit information again as it is contained
in the empobj parameter passed in.
2006-07-09 10:57:24 +00:00
a33f1378e8 (starv_sects): Reported food need was one short when the sector had no
food.
2006-07-08 12:47:39 +00:00
99fc82b94d (LND_AMM): Became weird in 4.2.3: ammo use depends on l_dam if l_ammo
is non-zero; actual value of non-zero l_ammo was unimportant.  Side
effect: it substantially increased ammunition consumption at high
tech, because the change made the value increase with tech.  Back out
4.2.3's change, just use l_ammo.  This lets deities customize
ammunition consumption independent of damage.  Remove second
parameter.  Callers changed.
2006-07-08 07:21:47 +00:00
35758fe053 (empobj, empobj_storage): Incomplete declarations. Temporary band-aid
to work around circular inclusion.
2006-07-08 06:18:46 +00:00
Ron Koenderink
1b0ff6cbac Correct file name in the comments to match the actual file name. 2006-07-08 00:27:20 +00:00
Ron Koenderink
79ee88f7c6 (nxtitemp, trade_getitem, trade_desc, trade_check_item_ok, nxtitem,
oprange, show_mission, nameofitem, build_mission_list_type,
unit_map, xdvisible, trdswitchown, ontradingblock, trad, check_trade,
unit_type_name, start_stop_unit, scut, scra, mission, multifire,
perform_mission, fuel, NSC_GENITEM): Replace struct genitem with
struct empobj.  Remove genitem.h and create a new file empobj.h.
Replace multiple instances of unions of ef_type structures with
one standard union empobj_storage which is a superset of the individual
instances.
2006-07-07 15:15:43 +00:00
Ron Koenderink
9e75e5e009 Documentation. 2006-07-07 15:15:42 +00:00
Ron Koenderink
21e34de8dd (tran_nuke): Correct text to nukes. Copy and Paste error. 2006-07-02 18:22:50 +00:00
Ron Koenderink
4d3b9dc77a (march): Modify map and bmap command options for march() to support
an user specified land unit number.
Without an user specified land unit number it will still default to the leader.
This will map and bmap commands consistent with commands like radar
and look. This is the same feature that was added to navi().
2006-06-29 13:46:03 +00:00
Ron Koenderink
274c8e423c (march): Add the ability mine using 'd' while in the march command.
This is the same feature that was added to navi().
2006-06-29 13:38:42 +00:00
Ron Koenderink
fa90c1921f (march): Reorganize, use parse() to split arguments.
These changes are based on improvements made in
navi().
2006-06-29 13:24:55 +00:00
Ron Koenderink
6a07beb3cb (navi): Modify map and bmap command options for navi() to support
an user specified ship number.
Without an user specified ship number it will still default to the flagship.
This will make map and bmap commands consistent with commands
like radar, sonar and look.
2006-06-29 03:36:14 +00:00
Ron Koenderink
ed176d8856 (navi): Add missing local map for ship list.
Broken in rev 1.27.  Remove unnecessary brackets.
2006-06-29 01:24:34 +00:00
Ron Koenderink
2438fe7c9c (navi): Add the ability mine using 'd' while in the navigate command. 2006-06-28 19:02:21 +00:00
Ron Koenderink
0c12d837cb (navi): Reorganize, use parse() to split arguments. 2006-06-28 13:51:44 +00:00
6fd656a685 (retreat_ship1): Don't charge mobility for sweeping. Should have been
changed along with shpsub.c rev. 1.49.
2006-06-27 17:36:16 +00:00
0cf5c17f08 (move): Don't trigger interdiction when moving stuff that cannot be
harmed (bars with opt_SUPER_BARS enabled).
2006-06-27 05:30:47 +00:00
Ron Koenderink
180c8586f6 (ac_fireflak): Remove unused local variables. 2006-06-26 01:43:28 +00:00
Ron Koenderink
b6d63e0165 Add missings unit references for start and stop. 2006-06-25 11:54:59 +00:00
Ron Koenderink
b4d2f3720a Add missing land units to discussion of avail usages. 2006-06-25 11:53:29 +00:00
36e41e5ac9 (lnd_sel): The marching code gets confused when trains and non-trains
march together.  Disallow for now.

(lnd_mar_one_sector): Use lnd_mobtype() to check whether rail's
needed.
2006-06-25 06:39:21 +00:00
Ron Koenderink
db599368bc Add commands related to nukes to Subject Nukes. 2006-06-24 22:36:42 +00:00
Ron Koenderink
cf3f55a800 Correct Level to Basic for all mapping commands. 2006-06-24 17:34:13 +00:00
Ron Koenderink
9488b2b2e4 Correct sbmap to nbmap. 2006-06-24 17:32:26 +00:00
Ron Koenderink
26a014ea04 (map, unit_map, draw_map, player_coms[]):
Modify nmap command to allow mapping around a nuke.
Add new command nbmap for bmapping around a nuke.
Add a new mapping flag 'n' for adding nukes to a map.
Correct syntax description for pmap, pbmap, lmap and lbmap
in player_coms[].
2006-06-24 17:29:40 +00:00
5091956480 (out5): Conditional chose formats incorrectly, e.g. 9999 was printed
as 10.0K instead of 10K.  Could make power report columns run
together.
2006-06-24 17:09:20 +00:00
Ron Koenderink
1f46c898fd Change bmap back to map. 2006-06-24 15:46:14 +00:00