Commit graph

2164 commits

Author SHA1 Message Date
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
Ron Koenderink
008600b926 Correct the command.
Match the description to other map info files.
2006-06-24 15:32:12 +00:00
Ron Koenderink
6611bec0bc Improve the description that explains the different types of maps. 2006-06-24 15:25:22 +00:00
Ron Koenderink
5bbf6a1b2f Make the map flag descriptions the same for all maps. 2006-06-24 15:16:26 +00:00
Ron Koenderink
a10e9dccd0 Explain the unit type display priorities for the map flags. 2006-06-24 15:13:17 +00:00
Ron Koenderink
d413fb1dd6 Correct pmap to show that it takes a plane identifier.
Correct lmap to show that it takes a land unit identifier.
2006-06-24 14:53:47 +00:00
d240bad7f8 (ac_flak_dam): Redesign so that code common to all its callers ends up
in this function.
2006-06-24 14:24:23 +00:00
d9c48789fb (pinflak_planedamage): Grant +1 vs. flak only to non-tactical bombers,
for consistency with ac_fireflak().
2006-06-24 14:21:55 +00:00
d06dc534ed (prod, prprod): Fix to show the designation that actually produces,
not the designation as it is now.
2006-06-24 09:22:04 +00:00
4985d9c9cd (ldump, pdump, sdump): The previous revision added extra space to the
output, fix that.
2006-06-24 08:06:33 +00:00
42e7e3e389 Fix the previous revision. 2006-06-23 06:07:36 +00:00
54bd2587d9 (SCT_TYPE_MAX, dchr): Don't include dchr[]'s sentinel in SCT_TYPE_MAX.
(SCT_MAXDEF): Unused, remove.
2006-06-23 04:53:31 +00:00
Ron Koenderink
0e4eb6bf0a (install_service, info, apro) [_WIN32]: Convert to standard snprintf()
from _snprintf().

[_WIN32]: Add #define snprintf to convert to _snprintf for WIN32
Visual Studio.
2006-06-23 00:13:21 +00:00
591b8d4862 (mil_dbl_pay): No effect, remove. Was used for mil being built into
units until that was removed in 4.0.0.
2006-06-22 20:45:19 +00:00
0adc54d43a (roundrange): Use roundavg(). 2006-06-22 20:29:34 +00:00
5a0dc14626 Remove superflous parenthesis. 2006-06-22 20:28:54 +00:00
0a50a48141 Update known contributors comment. 2006-06-22 20:27:36 +00:00
f28767e1e4 Support definition of additional products in product.config:
(P_MAX): Increase space in table.
2006-06-22 20:24:32 +00:00
9e8f74d239 Support definition of additional sector types in sector.config,
missing bits:
(budg, calc_all, update_main): Use SCT_TYPE_MAX instead of SCT_MAXDEF
to size tables.
(map_char): Update sanity check; use CANT_HAPPEN().
(show_sect_build, show_sect_stats, show_sect_capab): Use the sentinel
instead of SCT_MAXDEF.
2006-06-22 20:21:48 +00:00
063aabb893 (N_MAXSHIPS, SHP_TYPE_MAX, N_MAXPLANE, PLN_TYPE_MAX, N_MAXLAND)
(LND_TYPE_MAX): Replace.  Add a bit more space to the tables.
2006-06-22 20:10:23 +00:00
e81828ec4c Support definition of additional sector types in sector.config:
(SCT_TYPE_MAX): New.
(dchr): Use it instead of SCT_MAXDEF to size the table.
(SCT_EFFIC): Likewise.  Move from sect.h to budg.h.
2006-06-22 19:52:24 +00:00
cf1c69543e (empfile): Fix the previous revision: pretended ichr[], pchr[], dchr[]
and intrchr[] were still compile-time initialized.
2006-06-22 19:47:00 +00:00
2cb2c59ac6 Rewrite rev. 1.69 to suppress immutable field match check when
extending any table, empty or not:
(cur_obj_is_blank): New.
(fldval_must_match): Use it instead of initialized[].
(getobj): Set it along with cur_obj.
(setstr): Move fldval_must_match() down, so that cur_obj_is_blank is
defined.
(initialized): Remove.
2006-06-22 19:42:10 +00:00
a7393becc0 (produce_sect, update_main): Charge capital maintenance in
produce_sect(), just like all the other sector costs.
2006-06-22 17:16:31 +00:00