]> git.pond.sub.org Git - empserver/log
empserver
17 years agoUpdate for 4.3.7. v4.3.7
Markus Armbruster [Fri, 14 Jul 2006 23:08:49 +0000 (23:08 +0000)]
Update for 4.3.7.

17 years ago(draw_map): Simplify.
Markus Armbruster [Fri, 14 Jul 2006 23:07:59 +0000 (23:07 +0000)]
(draw_map): Simplify.

17 years agoChange level to Expert to match stop's.
Markus Armbruster [Fri, 14 Jul 2006 23:07:22 +0000 (23:07 +0000)]
Change level to Expert to match stop's.

17 years ago(powe): Remove unused local variable.
Ron Koenderink [Thu, 13 Jul 2006 21:17:00 +0000 (21:17 +0000)]
(powe): Remove unused local variable.
Remove CR's.

17 years ago[_WIN32, __GNUC__]: Reorganize the include files for WIN32 to
Ron Koenderink [Thu, 13 Jul 2006 21:14:16 +0000 (21:14 +0000)]
[_WIN32, __GNUC__]: Reorganize the include files for WIN32 to
separate the MinGW environment from the MSVC environment and
WIN32 environment.  Reorganize the order of the includes so
the system files are always loaded first to prevent with misc.h defines.
Remove system file includes from misc.h.

17 years agoFix power's c_form.
Markus Armbruster [Thu, 13 Jul 2006 20:58:13 +0000 (20:58 +0000)]
Fix power's c_form.

17 years ago(powe): Fix `pow n' not to ignore second argument when BTUs don't
Markus Armbruster [Thu, 13 Jul 2006 20:07:41 +0000 (20:07 +0000)]
(powe): Fix `pow n' not to ignore second argument when BTUs don't
suffice for `n'.

17 years ago(powe): Simplify evaluation of arg 1. No functional change.
Markus Armbruster [Thu, 13 Jul 2006 19:57:56 +0000 (19:57 +0000)]
(powe): Simplify evaluation of arg 1.  No functional change.

17 years ago(prpower): New, factored out of powe(). No functional change.
Markus Armbruster [Thu, 13 Jul 2006 19:41:05 +0000 (19:41 +0000)]
(prpower): New, factored out of powe().  No functional change.

17 years agoUpdate known contributors comment.
Markus Armbruster [Thu, 13 Jul 2006 19:12:26 +0000 (19:12 +0000)]
Update known contributors comment.

17 years ago(init_sanct): Spread food evenly among sanctuaries, for simplicity.
Markus Armbruster [Thu, 13 Jul 2006 18:42:34 +0000 (18:42 +0000)]
(init_sanct): Spread food evenly among sanctuaries, for simplicity.
Give max_pop() civilians (changes civs from 999 to 1000).

17 years ago(init_sanct): New, factored out of new(). No functional change.
Markus Armbruster [Thu, 13 Jul 2006 18:35:17 +0000 (18:35 +0000)]
(init_sanct): New, factored out of new().  No functional change.

17 years agoSpelling.
Markus Armbruster [Thu, 13 Jul 2006 18:23:24 +0000 (18:23 +0000)]
Spelling.

17 years agoBelatedly ignore subject Nukes.
Markus Armbruster [Thu, 13 Jul 2006 18:22:45 +0000 (18:22 +0000)]
Belatedly ignore subject Nukes.

17 years ago(display_region_map): Remove unused local variable.
Ron Koenderink [Thu, 13 Jul 2006 18:02:28 +0000 (18:02 +0000)]
(display_region_map): Remove unused local variable.

17 years agoImprove the description for the additional commands.
Ron Koenderink [Wed, 12 Jul 2006 23:45:51 +0000 (23:45 +0000)]
Improve the description for the additional commands.
Add description for the new drop command.
Correct the quotes.

17 years agoUpdate description for map command.
Ron Koenderink [Wed, 12 Jul 2006 23:41:42 +0000 (23:41 +0000)]
Update description for map command.
Explain the additional parameters for the map command.

17 years ago(do_map): New. map() was split into two parts map() and do_map().
Ron Koenderink [Wed, 12 Jul 2006 18:14:31 +0000 (18:14 +0000)]
(do_map): New.  map() was split into two parts map() and do_map().
(map): Call new function do_map().
(display_region_map): Modify to use do_map() instead of map().
(tran_nmap, tran_pmap, cmd_move_map): Modify to accomodate
the modified display_region_map() function.

17 years ago[_WIN32, __GNU__]: Use <string.h> for strncasecmp for MinGW.
Ron Koenderink [Tue, 11 Jul 2006 22:30:19 +0000 (22:30 +0000)]
[_WIN32, __GNU__]: Use <string.h> for strncasecmp for MinGW.
MinGW environment has an issue with conversion of strncasecmp()
to support _WIN32 and a definition in <string.h> for strncasecmp().

17 years agoRemove optlist.h, not required.
Ron Koenderink [Tue, 11 Jul 2006 22:08:10 +0000 (22:08 +0000)]
Remove optlist.h, not required.
Add empthread.h, needed for empth_request_shutdown() and
empth_wait_for_signal().

17 years agoAdd missing prototypes.h to get logerror().
Ron Koenderink [Tue, 11 Jul 2006 22:06:03 +0000 (22:06 +0000)]
Add missing prototypes.h to get logerror().

17 years agoFix the previous revision.
Markus Armbruster [Tue, 11 Jul 2006 19:59:28 +0000 (19:59 +0000)]
Fix the previous revision.

17 years agoFix error message.
Markus Armbruster [Tue, 11 Jul 2006 19:23:49 +0000 (19:23 +0000)]
Fix error message.

17 years agoChange system header inclusion order to make crufty old systems happy.
Markus Armbruster [Tue, 11 Jul 2006 19:11:55 +0000 (19:11 +0000)]
Change system header inclusion order to make crufty old systems happy.

17 years agoFix rev. 1.37 some more.
Markus Armbruster [Tue, 11 Jul 2006 19:07:42 +0000 (19:07 +0000)]
Fix rev. 1.37 some more.

17 years agoPoorly worded, many little errors, not enough focus. Rewrite,
Markus Armbruster [Tue, 11 Jul 2006 19:02:43 +0000 (19:02 +0000)]
Poorly worded, many little errors, not enough focus.  Rewrite,
basically.  Same outline, but almost every sentence is changed.
Replace some details by references.  Document show sect properly.

17 years agoDon't refer to Innards, it's obsolete. Clarify work. Talk about
Markus Armbruster [Tue, 11 Jul 2006 18:59:44 +0000 (18:59 +0000)]
Don't refer to Innards, it's obsolete.  Clarify work.  Talk about
petrol, not petroleum.  Advise that resource depletion is
configurable.  Clean up prose somewhat.

17 years agoPage managed to talk about BTUs in considerable detail, yet missed to
Markus Armbruster [Tue, 11 Jul 2006 18:55:31 +0000 (18:55 +0000)]
Page managed to talk about BTUs in considerable detail, yet missed to
tell what they're good for.  Amazing.

17 years agoDon't claim which resources are renewable and which aren't, because
Markus Armbruster [Tue, 11 Jul 2006 18:52:26 +0000 (18:52 +0000)]
Don't claim which resources are renewable and which aren't, because
that's configurable.

17 years agoDocument the transformation of sanctuaries into capitals or highways.
Markus Armbruster [Tue, 11 Jul 2006 18:51:08 +0000 (18:51 +0000)]
Document the transformation of sanctuaries into capitals or highways.

17 years agoDon't refer to Innards, it's obsolete.
Markus Armbruster [Tue, 11 Jul 2006 18:49:33 +0000 (18:49 +0000)]
Don't refer to Innards, it's obsolete.

17 years agoClarifications.
Markus Armbruster [Tue, 11 Jul 2006 18:48:36 +0000 (18:48 +0000)]
Clarifications.

17 years agoBelatedly remove BIG_CITY and DEFENSE_INFRA.
Markus Armbruster [Tue, 11 Jul 2006 18:47:42 +0000 (18:47 +0000)]
Belatedly remove BIG_CITY and DEFENSE_INFRA.

17 years ago(setstr): Supply missing cast.
Markus Armbruster [Tue, 11 Jul 2006 18:45:29 +0000 (18:45 +0000)]
(setstr): Supply missing cast.

17 years ago(vers): Format string fix.
Markus Armbruster [Tue, 11 Jul 2006 18:44:33 +0000 (18:44 +0000)]
(vers): Format string fix.

17 years agoFix the previous revision.
Markus Armbruster [Tue, 11 Jul 2006 18:42:56 +0000 (18:42 +0000)]
Fix the previous revision.

17 years agoFix the previous revision (system header inclusion cleanup), it
Markus Armbruster [Tue, 11 Jul 2006 18:42:08 +0000 (18:42 +0000)]
Fix the previous revision (system header inclusion cleanup), it
doesn't compile on crufty old systems.

17 years agoBack out the previous revision (system header inclusion cleanup), it
Markus Armbruster [Tue, 11 Jul 2006 18:11:03 +0000 (18:11 +0000)]
Back out the previous revision (system header inclusion cleanup), it
doesn't compile on crufty old systems.

17 years ago(bestownedpath): Failed to consider direction y due to off-by one
Markus Armbruster [Tue, 11 Jul 2006 06:25:26 +0000 (06:25 +0000)]
(bestownedpath): Failed to consider direction y due to off-by one
mistake in rev. 1.28.  Reported by Stefan Hauser.

17 years ago[_WIN32]: Add missing include sys/types.h to get off_t.
Ron Koenderink [Tue, 11 Jul 2006 03:16:02 +0000 (03:16 +0000)]
[_WIN32]: Add missing include sys/types.h to get off_t.

17 years agoAdd missing includes config.h, prototypes.h and file.h.
Ron Koenderink [Tue, 11 Jul 2006 03:14:56 +0000 (03:14 +0000)]
Add missing includes config.h, prototypes.h and file.h.

17 years ago(obj_nameof): New.
Ron Koenderink [Mon, 10 Jul 2006 23:14:26 +0000 (23:14 +0000)]
(obj_nameof): New.
(nameofitem): Remove, switch callers to to obj_nameof().
(mission, show_mission): Convert functions to use obj_nameof()
instead of nameofitem().

17 years agoBreak inclusion cycle: prototypes.h and commands.h included each
Markus Armbruster [Mon, 10 Jul 2006 06:37:23 +0000 (06:37 +0000)]
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.

17 years agoFix missing include.
Markus Armbruster [Mon, 10 Jul 2006 05:46:38 +0000 (05:46 +0000)]
Fix missing include.

17 years ago(coord): Unused & inappropriate, remove.
Markus Armbruster [Mon, 10 Jul 2006 04:57:03 +0000 (04:57 +0000)]
(coord): Unused & inappropriate, remove.

17 years agoFix the previous revision.
Markus Armbruster [Sun, 9 Jul 2006 20:27:36 +0000 (20:27 +0000)]
Fix the previous revision.

17 years agoAdd missing commands.
Ron Koenderink [Sun, 9 Jul 2006 19:16:44 +0000 (19:16 +0000)]
Add missing commands.
Correct sweep command example.

17 years ago(switch_leader, switch_flagship): New.
Ron Koenderink [Sun, 9 Jul 2006 18:30:13 +0000 (18:30 +0000)]
(switch_leader, switch_flagship): New.
(navi, marc): Add the ability to select a flagship or leader.

17 years ago(tran_map, tran_nmap, tran_pmap): Split tran_map() into tran_nmap()
Ron Koenderink [Sun, 9 Jul 2006 18:24:31 +0000 (18:24 +0000)]
(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.

17 years ago(move_ground): Passed junk to map callback when 'm' sub-command
Ron Koenderink [Sun, 9 Jul 2006 16:55:40 +0000 (16:55 +0000)]
(move_ground): Passed junk to map callback when 'm' sub-command
wasn't followed by an argument.

17 years agoRemove invalid example for sweeping mines.
Ron Koenderink [Sun, 9 Jul 2006 16:25:41 +0000 (16:25 +0000)]
Remove invalid example for sweeping mines.
Fix the grammer.

17 years ago(mission, build_mission_list_type, show_mission, oprange): Remove the
Ron Koenderink [Sun, 9 Jul 2006 10:57:24 +0000 (10:57 +0000)]
(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.

17 years ago(starv_sects): Reported food need was one short when the sector had no
Markus Armbruster [Sat, 8 Jul 2006 12:47:39 +0000 (12:47 +0000)]
(starv_sects): Reported food need was one short when the sector had no
food.

17 years ago(LND_AMM): Became weird in 4.2.3: ammo use depends on l_dam if l_ammo
Markus Armbruster [Sat, 8 Jul 2006 07:21:47 +0000 (07:21 +0000)]
(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.

17 years ago(empobj, empobj_storage): Incomplete declarations. Temporary band-aid
Markus Armbruster [Sat, 8 Jul 2006 06:18:46 +0000 (06:18 +0000)]
(empobj, empobj_storage): Incomplete declarations.  Temporary band-aid
to work around circular inclusion.

17 years agoCorrect file name in the comments to match the actual file name.
Ron Koenderink [Sat, 8 Jul 2006 00:27:20 +0000 (00:27 +0000)]
Correct file name in the comments to match the actual file name.

17 years ago(nxtitemp, trade_getitem, trade_desc, trade_check_item_ok, nxtitem,
Ron Koenderink [Fri, 7 Jul 2006 15:15:43 +0000 (15:15 +0000)]
(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.

17 years agoDocumentation.
Ron Koenderink [Fri, 7 Jul 2006 15:15:42 +0000 (15:15 +0000)]
Documentation.

17 years ago(tran_nuke): Correct text to nukes. Copy and Paste error.
Ron Koenderink [Sun, 2 Jul 2006 18:22:50 +0000 (18:22 +0000)]
(tran_nuke): Correct text to nukes.  Copy and Paste error.

17 years ago(march): Modify map and bmap command options for march() to support
Ron Koenderink [Thu, 29 Jun 2006 13:46:03 +0000 (13:46 +0000)]
(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().

17 years ago(march): Add the ability mine using 'd' while in the march command.
Ron Koenderink [Thu, 29 Jun 2006 13:38:42 +0000 (13:38 +0000)]
(march): Add the ability mine using 'd' while in the march command.
This is the same feature that was added to navi().

17 years ago(march): Reorganize, use parse() to split arguments.
Ron Koenderink [Thu, 29 Jun 2006 13:24:55 +0000 (13:24 +0000)]
(march): Reorganize, use parse() to split arguments.
These changes are based on improvements made in
navi().

17 years ago(navi): Modify map and bmap command options for navi() to support
Ron Koenderink [Thu, 29 Jun 2006 03:36:14 +0000 (03:36 +0000)]
(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.

17 years ago(navi): Add missing local map for ship list.
Ron Koenderink [Thu, 29 Jun 2006 01:24:34 +0000 (01:24 +0000)]
(navi): Add missing local map for ship list.
Broken in rev 1.27.  Remove unnecessary brackets.

17 years ago(navi): Add the ability mine using 'd' while in the navigate command.
Ron Koenderink [Wed, 28 Jun 2006 19:02:21 +0000 (19:02 +0000)]
(navi): Add the ability mine using 'd' while in the navigate command.

17 years ago(navi): Reorganize, use parse() to split arguments.
Ron Koenderink [Wed, 28 Jun 2006 13:51:44 +0000 (13:51 +0000)]
(navi): Reorganize, use parse() to split arguments.

17 years ago(retreat_ship1): Don't charge mobility for sweeping. Should have been
Markus Armbruster [Tue, 27 Jun 2006 17:36:16 +0000 (17:36 +0000)]
(retreat_ship1): Don't charge mobility for sweeping.  Should have been
changed along with shpsub.c rev. 1.49.

17 years ago(move): Don't trigger interdiction when moving stuff that cannot be
Markus Armbruster [Tue, 27 Jun 2006 05:30:47 +0000 (05:30 +0000)]
(move): Don't trigger interdiction when moving stuff that cannot be
harmed (bars with opt_SUPER_BARS enabled).

17 years ago(ac_fireflak): Remove unused local variables.
Ron Koenderink [Mon, 26 Jun 2006 01:43:28 +0000 (01:43 +0000)]
(ac_fireflak): Remove unused local variables.

17 years agoAdd missings unit references for start and stop.
Ron Koenderink [Sun, 25 Jun 2006 11:54:59 +0000 (11:54 +0000)]
Add missings unit references for start and stop.

17 years agoAdd missing land units to discussion of avail usages.
Ron Koenderink [Sun, 25 Jun 2006 11:53:29 +0000 (11:53 +0000)]
Add missing land units to discussion of avail usages.

17 years ago(lnd_sel): The marching code gets confused when trains and non-trains
Markus Armbruster [Sun, 25 Jun 2006 06:39:21 +0000 (06:39 +0000)]
(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.

17 years agoAdd commands related to nukes to Subject Nukes.
Ron Koenderink [Sat, 24 Jun 2006 22:36:42 +0000 (22:36 +0000)]
Add commands related to nukes to Subject Nukes.

17 years agoCorrect Level to Basic for all mapping commands.
Ron Koenderink [Sat, 24 Jun 2006 17:34:13 +0000 (17:34 +0000)]
Correct Level to Basic for all mapping commands.

17 years agoCorrect sbmap to nbmap.
Ron Koenderink [Sat, 24 Jun 2006 17:32:26 +0000 (17:32 +0000)]
Correct sbmap to nbmap.

17 years ago(map, unit_map, draw_map, player_coms[]):
Ron Koenderink [Sat, 24 Jun 2006 17:29:40 +0000 (17:29 +0000)]
(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[].

17 years ago(out5): Conditional chose formats incorrectly, e.g. 9999 was printed
Markus Armbruster [Sat, 24 Jun 2006 17:09:20 +0000 (17:09 +0000)]
(out5): Conditional chose formats incorrectly, e.g. 9999 was printed
as 10.0K instead of 10K.  Could make power report columns run
together.

17 years agoChange bmap back to map.
Ron Koenderink [Sat, 24 Jun 2006 15:46:14 +0000 (15:46 +0000)]
Change bmap back to map.

17 years agoCorrect the command.
Ron Koenderink [Sat, 24 Jun 2006 15:32:12 +0000 (15:32 +0000)]
Correct the command.
Match the description to other map info files.

17 years agoImprove the description that explains the different types of maps.
Ron Koenderink [Sat, 24 Jun 2006 15:25:22 +0000 (15:25 +0000)]
Improve the description that explains the different types of maps.

17 years agoMake the map flag descriptions the same for all maps.
Ron Koenderink [Sat, 24 Jun 2006 15:16:26 +0000 (15:16 +0000)]
Make the map flag descriptions the same for all maps.

17 years agoExplain the unit type display priorities for the map flags.
Ron Koenderink [Sat, 24 Jun 2006 15:13:17 +0000 (15:13 +0000)]
Explain the unit type display priorities for the map flags.

17 years agoCorrect pmap to show that it takes a plane identifier.
Ron Koenderink [Sat, 24 Jun 2006 14:53:47 +0000 (14:53 +0000)]
Correct pmap to show that it takes a plane identifier.
Correct lmap to show that it takes a land unit identifier.

17 years ago(ac_flak_dam): Redesign so that code common to all its callers ends up
Markus Armbruster [Sat, 24 Jun 2006 14:24:23 +0000 (14:24 +0000)]
(ac_flak_dam): Redesign so that code common to all its callers ends up
in this function.

17 years ago(pinflak_planedamage): Grant +1 vs. flak only to non-tactical bombers,
Markus Armbruster [Sat, 24 Jun 2006 14:21:55 +0000 (14:21 +0000)]
(pinflak_planedamage): Grant +1 vs. flak only to non-tactical bombers,
for consistency with ac_fireflak().

17 years ago(prod, prprod): Fix to show the designation that actually produces,
Markus Armbruster [Sat, 24 Jun 2006 09:22:04 +0000 (09:22 +0000)]
(prod, prprod): Fix to show the designation that actually produces,
not the designation as it is now.

17 years ago(ldump, pdump, sdump): The previous revision added extra space to the
Markus Armbruster [Sat, 24 Jun 2006 08:06:33 +0000 (08:06 +0000)]
(ldump, pdump, sdump): The previous revision added extra space to the
output, fix that.

17 years agoFix the previous revision.
Markus Armbruster [Fri, 23 Jun 2006 06:07:36 +0000 (06:07 +0000)]
Fix the previous revision.

17 years ago(SCT_TYPE_MAX, dchr): Don't include dchr[]'s sentinel in SCT_TYPE_MAX.
Markus Armbruster [Fri, 23 Jun 2006 04:53:31 +0000 (04:53 +0000)]
(SCT_TYPE_MAX, dchr): Don't include dchr[]'s sentinel in SCT_TYPE_MAX.

(SCT_MAXDEF): Unused, remove.

17 years ago(install_service, info, apro) [_WIN32]: Convert to standard snprintf()
Ron Koenderink [Fri, 23 Jun 2006 00:13:21 +0000 (00:13 +0000)]
(install_service, info, apro) [_WIN32]: Convert to standard snprintf()
from _snprintf().

[_WIN32]: Add #define snprintf to convert to _snprintf for WIN32
Visual Studio.

17 years ago(mil_dbl_pay): No effect, remove. Was used for mil being built into
Markus Armbruster [Thu, 22 Jun 2006 20:45:19 +0000 (20:45 +0000)]
(mil_dbl_pay): No effect, remove.  Was used for mil being built into
units until that was removed in 4.0.0.

17 years ago(roundrange): Use roundavg().
Markus Armbruster [Thu, 22 Jun 2006 20:29:34 +0000 (20:29 +0000)]
(roundrange): Use roundavg().

17 years agoRemove superflous parenthesis.
Markus Armbruster [Thu, 22 Jun 2006 20:28:54 +0000 (20:28 +0000)]
Remove superflous parenthesis.

17 years agoUpdate known contributors comment.
Markus Armbruster [Thu, 22 Jun 2006 20:27:36 +0000 (20:27 +0000)]
Update known contributors comment.

17 years agoSupport definition of additional products in product.config:
Markus Armbruster [Thu, 22 Jun 2006 20:24:32 +0000 (20:24 +0000)]
Support definition of additional products in product.config:
(P_MAX): Increase space in table.

17 years agoSupport definition of additional sector types in sector.config,
Markus Armbruster [Thu, 22 Jun 2006 20:21:48 +0000 (20:21 +0000)]
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.

17 years ago(N_MAXSHIPS, SHP_TYPE_MAX, N_MAXPLANE, PLN_TYPE_MAX, N_MAXLAND)
Markus Armbruster [Thu, 22 Jun 2006 20:10:23 +0000 (20:10 +0000)]
(N_MAXSHIPS, SHP_TYPE_MAX, N_MAXPLANE, PLN_TYPE_MAX, N_MAXLAND)
(LND_TYPE_MAX): Replace.  Add a bit more space to the tables.

17 years agoSupport definition of additional sector types in sector.config:
Markus Armbruster [Thu, 22 Jun 2006 19:52:24 +0000 (19:52 +0000)]
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.

17 years ago(empfile): Fix the previous revision: pretended ichr[], pchr[], dchr[]
Markus Armbruster [Thu, 22 Jun 2006 19:47:00 +0000 (19:47 +0000)]
(empfile): Fix the previous revision: pretended ichr[], pchr[], dchr[]
and intrchr[] were still compile-time initialized.

17 years agoRewrite rev. 1.69 to suppress immutable field match check when
Markus Armbruster [Thu, 22 Jun 2006 19:42:10 +0000 (19:42 +0000)]
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.