Commit graph

2407 commits

Author SHA1 Message Date
7282d4d639 (prpower): New, factored out of powe(). No functional change. 2006-07-13 19:41:05 +00:00
7b54d5feaa Update known contributors comment. 2006-07-13 19:12:26 +00:00
a3eb9c0d30 (init_sanct): Spread food evenly among sanctuaries, for simplicity.
Give max_pop() civilians (changes civs from 999 to 1000).
2006-07-13 18:42:34 +00:00
5fdd7546dd (init_sanct): New, factored out of new(). No functional change. 2006-07-13 18:35:17 +00:00
ad3d28761e Spelling. 2006-07-13 18:23:24 +00:00
bb0b9db423 Belatedly ignore subject Nukes. 2006-07-13 18:22:45 +00:00
Ron Koenderink
1ebb172e66 (display_region_map): Remove unused local variable. 2006-07-13 18:02:28 +00:00
Ron Koenderink
a8eb4bb0fc Improve the description for the additional commands.
Add description for the new drop command.
Correct the quotes.
2006-07-12 23:45:51 +00:00
Ron Koenderink
1b780db99e Update description for map command.
Explain the additional parameters for the map command.
2006-07-12 23:41:42 +00:00
Ron Koenderink
51275c753f (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.
2006-07-12 18:14:31 +00:00
Ron Koenderink
fa38aef700 [_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().
2006-07-11 22:30:19 +00:00
Ron Koenderink
4c9293f9ea Remove optlist.h, not required.
Add empthread.h, needed for empth_request_shutdown() and
empth_wait_for_signal().
2006-07-11 22:08:10 +00:00
Ron Koenderink
897c212bfa Add missing prototypes.h to get logerror(). 2006-07-11 22:06:03 +00:00
db3996e37e Fix the previous revision. 2006-07-11 19:59:28 +00:00
1edc5a7b54 Fix error message. 2006-07-11 19:23:49 +00:00
c54cb0e8e8 Change system header inclusion order to make crufty old systems happy. 2006-07-11 19:11:55 +00:00
91b4045558 Fix rev. 1.37 some more. 2006-07-11 19:07:42 +00:00
992879941b 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.
2006-07-11 19:02:43 +00:00
6fbb5c88fc 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.
2006-07-11 18:59:44 +00:00
ceb8dbfaed Page managed to talk about BTUs in considerable detail, yet missed to
tell what they're good for.  Amazing.
2006-07-11 18:55:31 +00:00
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