]> git.pond.sub.org Git - empserver/log
empserver
17 years agoUpdate copyright notice.
Markus Armbruster [Tue, 9 Jan 2007 19:09:31 +0000 (19:09 +0000)]
Update copyright notice.

17 years agoBump version to 4.3.10.
Markus Armbruster [Mon, 8 Jan 2007 18:26:24 +0000 (18:26 +0000)]
Bump version to 4.3.10.

17 years agoUpdate for 4.3.9. v4.3.9
Markus Armbruster [Sat, 6 Jan 2007 12:46:01 +0000 (12:46 +0000)]
Update for 4.3.9.

17 years ago(marc, navi): Switch the parsing logic to facilitate the merging marc()
Ron Koenderink [Sat, 6 Jan 2007 12:35:44 +0000 (12:35 +0000)]
(marc, navi): Switch the parsing logic to facilitate the merging marc()
and navi() in the future.  No functional changes.

17 years ago(landrepair): Allow land unit repairs in allied sectors
Ron Koenderink [Thu, 4 Jan 2007 13:22:06 +0000 (13:22 +0000)]
(landrepair): Allow land unit repairs in allied sectors

17 years ago(decl): Prevent the deity from changing relations for a player to
Ron Koenderink [Wed, 3 Jan 2007 12:54:41 +0000 (12:54 +0000)]
(decl): Prevent the deity from changing relations for a player to
self.  Closes #1384998.  Allow the deity to set the relations of a
player towards the deity.

17 years ago(arm): Prevent a nuke from being on two planes at the same time.
Ron Koenderink [Tue, 2 Jan 2007 23:57:40 +0000 (23:57 +0000)]
(arm): Prevent a nuke from being on two planes at the same time.
Closes #1602998.

17 years ago(do_land_mob): Combine to two duplicate blocks of code.
Ron Koenderink [Tue, 2 Jan 2007 12:52:02 +0000 (12:52 +0000)]
(do_land_mob): Combine to two duplicate blocks of code.

17 years ago(march, navi): Switch to struct empobj * for leader and rename to leader.
Ron Koenderink [Tue, 2 Jan 2007 12:50:56 +0000 (12:50 +0000)]
(march, navi): Switch to struct empobj * for leader and rename to leader.
No functional changes.

17 years ago(setstr): Fix type error in variadic argument.
Markus Armbruster [Sun, 31 Dec 2006 17:21:11 +0000 (17:21 +0000)]
(setstr): Fix type error in variadic argument.

17 years ago(planerepair): Fix so only the player's own planes and allied planes
Ron Koenderink [Sun, 31 Dec 2006 17:19:46 +0000 (17:19 +0000)]
(planerepair): Fix so only the player's own planes and allied planes
are repaired.  Closes #757081.

17 years ago(shutdown_init): Has no effect, remove.
Markus Armbruster [Sun, 31 Dec 2006 17:05:57 +0000 (17:05 +0000)]
(shutdown_init): Has no effect, remove.

17 years agoNew option AUTO_POWER; closes #1009993:
Markus Armbruster [Sun, 31 Dec 2006 16:56:34 +0000 (16:56 +0000)]
New option AUTO_POWER; closes #1009993:
(opt_AUTO_POWER, update_power): New.
(update_main): Implement AUTO_POWER.
(powe): Disable power new when AUTO_POWER is on.

(powe): New power update.
(gen_power): Compute power into buffer passed by caller, make write to
power file optional.

17 years ago(genpower, powcmp): Sort struct powstr powbuf[] instead of struct
Markus Armbruster [Sun, 31 Dec 2006 13:38:46 +0000 (13:38 +0000)]
(genpower, powcmp): Sort struct powstr powbuf[] instead of struct
powsort order[].  Marginally less efficient, but simpler.
(powsort): Unused, remove.

17 years ago(update_main): Move logging of the update up to a more logical place.
Markus Armbruster [Sun, 31 Dec 2006 13:16:17 +0000 (13:16 +0000)]
(update_main): Move logging of the update up to a more logical place.

17 years ago(get_leader, pr_leader_change): New.
Ron Koenderink [Sun, 31 Dec 2006 12:31:18 +0000 (12:31 +0000)]
(get_leader, pr_leader_change): New.
(set_leader, set_flagship): Replace with get_leader() and
pr_leader_change().

17 years ago(planerepair) Remove the CANT_HAPPEN owner check
Ron Koenderink [Sat, 30 Dec 2006 21:05:36 +0000 (21:05 +0000)]
(planerepair) Remove the CANT_HAPPEN owner check
as allied planes and previously allied planes can
be on the ship.

17 years ago(do_mob_land): Fix to use all excess mobility for fortification, not
Ron Koenderink [Fri, 29 Dec 2006 19:56:00 +0000 (19:56 +0000)]
(do_mob_land): Fix to use all excess mobility for fortification, not
just up to the land unit's current mobility.

17 years ago(planerepair): Move the carrier sanity to before the carrier variable is
Ron Koenderink [Thu, 28 Dec 2006 17:44:03 +0000 (17:44 +0000)]
(planerepair): Move the carrier sanity to before the carrier variable is
used.

17 years ago(do_mob_land): Disable automatic land unit fortification with excess
Ron Koenderink [Tue, 26 Dec 2006 19:17:22 +0000 (19:17 +0000)]
(do_mob_land): Disable automatic land unit fortification with excess
mobility when MOB_ACCESS is on.  It leads to excessively deep
recursion and thus miserable performance as the number of land units
grows.

17 years ago(produce): Randomly flushed level production below 1.0 to zero. Fix.
Ron Koenderink [Tue, 26 Dec 2006 19:15:41 +0000 (19:15 +0000)]
(produce): Randomly flushed level production below 1.0 to zero.  Fix.

(produce): Assign rounded level production to *ACTUAL instead of
randomly rounded one.

17 years agoInclude pthread.h in the implementation instead of the header.
Markus Armbruster [Tue, 26 Dec 2006 16:52:11 +0000 (16:52 +0000)]
Include pthread.h in the implementation instead of the header.

17 years ago(ef_open) [_WIN32]: Fix to get a read lock instead of a write lock for
Ron Koenderink [Wed, 29 Nov 2006 12:16:43 +0000 (12:16 +0000)]
(ef_open) [_WIN32]: Fix to get a read lock instead of a write lock for
EFF_RDONLY and to get a write lock instead of a total file lock for
file opened for writing.

17 years agoFix rev. 1.24, which failed to charge mobility for sweeping without
Markus Armbruster [Tue, 21 Nov 2006 22:26:30 +0000 (22:26 +0000)]
Fix rev. 1.24, which failed to charge mobility for sweeping without
moving.

17 years agoBump version to 4.3.9.
Markus Armbruster [Sat, 21 Oct 2006 06:49:04 +0000 (06:49 +0000)]
Bump version to 4.3.9.

17 years ago4.3.8 last minute changes. v4.3.8
Markus Armbruster [Fri, 20 Oct 2006 18:33:29 +0000 (18:33 +0000)]
4.3.8 last minute changes.

17 years ago(upd_ship): Don't produce stuff when broke, to match sector behavior.
Markus Armbruster [Fri, 20 Oct 2006 18:30:26 +0000 (18:30 +0000)]
(upd_ship): Don't produce stuff when broke, to match sector behavior.

17 years agoUpdate for 4.3.8.
Markus Armbruster [Fri, 13 Oct 2006 18:29:22 +0000 (18:29 +0000)]
Update for 4.3.8.

17 years ago(switch_leader): Generalize the code, no functional changes.
Ron Koenderink [Tue, 10 Oct 2006 20:23:19 +0000 (20:23 +0000)]
(switch_leader): Generalize the code, no functional changes.
(navi): Change switch_flagship() to call switch_leader() instead.
(switch_flagship): Remove, not needed, replaced with switch_leader().

17 years ago(take_casualties): Code for distributing casualties among units did
Markus Armbruster [Sun, 8 Oct 2006 09:32:49 +0000 (09:32 +0000)]
(take_casualties): Code for distributing casualties among units did
not make sense, and in its confusion destroyed land land units when it
shouldn't.  Minimally invasive fix; code is still ugly and
incomprehensible.

17 years ago(guerrilla): Make security units not raid friendly che.
Markus Armbruster [Sun, 8 Oct 2006 09:21:26 +0000 (09:21 +0000)]
(guerrilla): Make security units not raid friendly che.

17 years ago(struct ulist): Add abstract reference to types.h to accomodate
Ron Koenderink [Wed, 4 Oct 2006 01:20:29 +0000 (01:20 +0000)]
(struct ulist): Add abstract reference to types.h to accomodate
the ciruclar reference between struct ulist and union empobj_storage
and struct lndstr.

17 years agoCombined struct llist and struct mlist into superset struct ulist.
Ron Koenderink [Mon, 25 Sep 2006 03:29:06 +0000 (03:29 +0000)]
Combined struct llist and struct mlist into superset struct ulist.
(assa, set_leader, switch_leader, set_flagship, switch_flagship,
take_move_in_mob, get_land, ask_olist, att_get_defense,
get_dlist, get_ototal, get_dtotal, kill_land, att_infect_units,
put_land, att_reacting_units, count_bodies, att_fight,
send_reacting_units_home, take_def, ask_move_in, move_in_land,
lnd_print, lnd_delete, lnd_take_casualty, lnd_takemob,
lnd_sel, lnd_mar, lnd_put, lnd_sweep, contains_engineer,
lnd_check_mines, lnd_list, lnd_mess,
lnd_damage, lnd_easiest_target, lnd_mar_one_sector, shp_sel,
shp_nav, shp_put, shp_sweep, shp_check_one_mines, shp_check_mines,
shp_list, shp_mess, shp_count, shp_damage_one, shp_damage,
shp_contains, most_valuable_ship, shp_easiest_target,
shp_missile_interdiction, notify_coastguard,
shp_view, shp_nav_one_sector, shp_missdef, nav_ship,
fltp_to_list): Switch to struct ulist from either struct mlist
or struct llist.

17 years ago(out5): Rev. 1.36. didn't fully fix the format conditional.
Markus Armbruster [Sat, 23 Sep 2006 15:47:40 +0000 (15:47 +0000)]
(out5): Rev. 1.36. didn't fully fix the format conditional.
Fold negative cases into positive ones.

17 years ago(apro) [!_WIN32]: Silently ignore directory entries starting with '.'.
Markus Armbruster [Sat, 23 Sep 2006 15:00:01 +0000 (15:00 +0000)]
(apro) [!_WIN32]: Silently ignore directory entries starting with '.'.
Before, apro() logged complaints about . and .. not being regular
files.

17 years agoClean up the previous revision.
Markus Armbruster [Sat, 23 Sep 2006 13:25:46 +0000 (13:25 +0000)]
Clean up the previous revision.

17 years agoDocument stop order expiry.
Markus Armbruster [Sat, 23 Sep 2006 13:24:19 +0000 (13:24 +0000)]
Document stop order expiry.

17 years ago(produce_sect): Game state changes may be changed only if
Markus Armbruster [Sat, 23 Sep 2006 10:47:58 +0000 (10:47 +0000)]
(produce_sect): Game state changes may be changed only if
player->simulation.  Fix a missing guard.  Existing callers should not
need it.

17 years ago(produce_sect, finish_sects): Move stop order expiry to end of update,
Markus Armbruster [Sat, 23 Sep 2006 10:37:55 +0000 (10:37 +0000)]
(produce_sect, finish_sects): Move stop order expiry to end of update,
so that stopped sectors don't repair units.  The update sequence
masked this bug until its change in src/lib/update/main.c rev. 1.25,
but use of budget priorities (gone since rev. 1.24) could unmask it.

17 years ago(sect_has_dock): NAV_CANAL in sect.h rev. 1.36 broke loading in
Markus Armbruster [Sat, 23 Sep 2006 09:09:43 +0000 (09:09 +0000)]
(sect_has_dock): NAV_CANAL in sect.h rev. 1.36 broke loading in
canals, fix.  Can't enforce M_CANAL condition here, so leave it to
callers.  Callers don't enforce it either, which means landlocked
ships can load in canals.  Oh well.

17 years ago(player_main): Delay journal_login() until after error exits, to
Markus Armbruster [Sat, 23 Sep 2006 08:58:54 +0000 (08:58 +0000)]
(player_main): Delay journal_login() until after error exits, to
ensure it is properly paired with journal_logout().

17 years ago(tend_land): Fix to not let land units be tended that could not be
Markus Armbruster [Sat, 23 Sep 2006 08:40:40 +0000 (08:40 +0000)]
(tend_land): Fix to not let land units be tended that could not be
loaded.

17 years agoRemove bogus paragraphs on RES_POP and NO_PLAGUE. Clarify sentence on
Markus Armbruster [Sat, 23 Sep 2006 08:37:57 +0000 (08:37 +0000)]
Remove bogus paragraphs on RES_POP and NO_PLAGUE.  Clarify sentence on
max safe population.

17 years agoUpdate for maximum population change in sect.config rev. 1.3. Remove
Markus Armbruster [Sat, 23 Sep 2006 08:35:36 +0000 (08:35 +0000)]
Update for maximum population change in sect.config rev. 1.3.  Remove
incorrect claims about mil.

17 years ago(genlist): Switch thing to use struct empobj * instead of void *.
Ron Koenderink [Fri, 1 Sep 2006 23:22:45 +0000 (23:22 +0000)]
(genlist): Switch thing to use struct empobj * instead of void *.
Remove type from struct genlist as it can be determined from thing.
Users changed.

17 years ago(struct trdstr): Change trd_type to be short to be consistent with the
Ron Koenderink [Tue, 22 Aug 2006 03:52:44 +0000 (03:52 +0000)]
(struct trdstr): Change trd_type to be short  to be consistent with the
rest of the definitions of ef_type.

17 years ago(empobj_chr): New, create a new (imcomplete) structure for
Ron Koenderink [Fri, 18 Aug 2006 23:32:45 +0000 (23:32 +0000)]
(empobj_chr): New, create a new (imcomplete) structure for
empobj characteristics.
(get_empobj_chr):  Update get_empobj_chr() to use new
struct empobj_chr.

17 years ago(radar): New, moved functionality from rada() except ef_type determination.
Ron Koenderink [Wed, 16 Aug 2006 01:16:30 +0000 (01:16 +0000)]
(radar): New, moved functionality from rada() except ef_type determination.
(rada): Call radar() with EF_SHIP.
(lrad): New, call radar() with EF_LAND.
(empmod[]): Call lrad() for lradar command.
(march, navi): Call radar() with appropriate type.

17 years ago(EF_IS_VIEW): New.
Markus Armbruster [Sun, 13 Aug 2006 07:29:30 +0000 (07:29 +0000)]
(EF_IS_VIEW): New.
(xdump): Use it to deny access to views when denying access to game
state.  Fixes the previous revision.

17 years ago(obj_nameof): Return safer error value.
Markus Armbruster [Sun, 13 Aug 2006 07:18:11 +0000 (07:18 +0000)]
(obj_nameof): Return safer error value.

(get_empobjp, get_empobj_chr, emp_obj_chr_name, get_empobj_mob_max):
Style.

17 years agoAllow xdump before break; partial solution for #1417871:
Markus Armbruster [Sun, 13 Aug 2006 07:13:37 +0000 (07:13 +0000)]
Allow xdump before break; partial solution for #1417871:
(player_coms): Set xdump's c_permit to VIS.
(xdump): Deny countries that couldn't run xdump before access to game
state.

17 years ago(ef_open) [_WIN32]: Add shared.h for MinGW environment,
Ron Koenderink [Tue, 8 Aug 2006 22:43:18 +0000 (22:43 +0000)]
(ef_open) [_WIN32]: Add shared.h for MinGW environment,
needed for WIN32 file locking. Broken (missed) in rev 1.70.

17 years ago(ef_open) [_WIN32]: Provide file locking for WIN32.
Ron Koenderink [Mon, 7 Aug 2006 17:15:04 +0000 (17:15 +0000)]
(ef_open) [_WIN32]: Provide file locking for WIN32.

17 years ago(rada): Replace the "unit" text with "land" to be more clear.
Ron Koenderink [Fri, 4 Aug 2006 19:59:24 +0000 (19:59 +0000)]
(rada): Replace the "unit" text with "land" to be more clear.

17 years ago(rada): Using struct empobj to generalize the code.
Ron Koenderink [Wed, 2 Aug 2006 22:07:12 +0000 (22:07 +0000)]
(rada): Using struct empobj to generalize the code.

17 years ago(makelost, makenotlost, findlost, struct loststr): Change type to be a
Ron Koenderink [Wed, 2 Aug 2006 21:46:34 +0000 (21:46 +0000)]
(makelost, makenotlost, findlost, struct loststr): Change type to be a
short instead of a char.  This will make lost_type consistent with
ef_type in the rest of the structures.

17 years ago(unit_map): Replace player->owner with direct owner check and
Ron Koenderink [Wed, 2 Aug 2006 18:39:22 +0000 (18:39 +0000)]
(unit_map): Replace player->owner with direct owner check and
player->god check.  player->owner is not set if ef_ptr() is used
as no post_read() is done. Broken in rev 1.38.  Not completely fixed
in rev 1.40.

17 years ago(ef_open): Lock the file. This prevents two programs (servers in
Markus Armbruster [Wed, 2 Aug 2006 18:05:04 +0000 (18:05 +0000)]
(ef_open): Lock the file.  This prevents two programs (servers in
particular) running on the same game state.  fairland does not use
ef_open() at this time, and thus ignores the lock.

17 years ago(produce): The reported amount produced (returned through last
Markus Armbruster [Wed, 2 Aug 2006 17:58:20 +0000 (17:58 +0000)]
(produce): The reported amount produced (returned through last
parameter) did not reflect production cut for ITEM_MAX.  Broken in
3.0.14 or so.  Reported by Stefan Hauser.

17 years ago(gift): Remove the type argument, can be determined from the ptr
Ron Koenderink [Wed, 2 Aug 2006 13:07:09 +0000 (13:07 +0000)]
(gift): Remove the type argument, can be determined from the ptr
argument. Replace prship/prland/prplane/prnuke code with
obj_nameof().

17 years ago(unit_map): Replace player->owner with direct owner check.
Ron Koenderink [Sun, 30 Jul 2006 01:05:17 +0000 (01:05 +0000)]
(unit_map): Replace player->owner with direct owner check.
player->owner if not set if ef_ptr() is used as no post_read() is done.
Broken in rev 1.38.

17 years ago(getpath): Remove check for DIR_MAP.
Ron Koenderink [Sat, 29 Jul 2006 17:55:22 +0000 (17:55 +0000)]
(getpath): Remove check for DIR_MAP.
DIR_MAP is not a value that can be entered by the user.

17 years ago(draw_map): Use struct empobj to generalize the code.
Ron Koenderink [Thu, 27 Jul 2006 23:32:55 +0000 (23:32 +0000)]
(draw_map): Use struct empobj to generalize the code.

17 years ago(map): Prompt only for sects for map and bmap commands.
Ron Koenderink [Wed, 26 Jul 2006 23:13:52 +0000 (23:13 +0000)]
(map): Prompt only for sects for map and bmap commands.
Broken in 1.27.

17 years ago(get_empobj_chr, obj_nameof): Switch CANT_HAPPEN() to
Ron Koenderink [Wed, 26 Jul 2006 01:09:11 +0000 (01:09 +0000)]
(get_empobj_chr, obj_nameof): Switch CANT_HAPPEN() to
CANT_REACH().

(get_empobj_mob_max): Remove carriage return.

17 years ago(get_empobj_mob_max): Move the return -1 to the end of function.
Ron Koenderink [Wed, 26 Jul 2006 01:01:14 +0000 (01:01 +0000)]
(get_empobj_mob_max): Move the return -1 to the end of function.

17 years ago(emp_obj_chr_name): Move the return NULL to the end of function.
Ron Koenderink [Wed, 26 Jul 2006 00:58:14 +0000 (00:58 +0000)]
(emp_obj_chr_name): Move the return NULL to the end of function.

17 years ago(get_empobj_chr): Removed local cp. Return the result directly.
Ron Koenderink [Wed, 26 Jul 2006 00:54:33 +0000 (00:54 +0000)]
(get_empobj_chr): Removed local cp.  Return the result directly.

17 years ago(get_empobj_mob_max): Switch ef_type to type to be more consistent
Ron Koenderink [Wed, 26 Jul 2006 00:40:33 +0000 (00:40 +0000)]
(get_empobj_mob_max): Switch ef_type to type to be more consistent
with other functions.

17 years ago(get_empobjp): New. Returns a pointer an empobj.
Ron Koenderink [Wed, 26 Jul 2006 00:21:58 +0000 (00:21 +0000)]
(get_empobjp): New.  Returns a pointer an empobj.
(emp_obj_chr_name): New. Returns a pointer to the characteristics name
for an empobj.
(unit_map):  Simplify unit_map() by using get_empobjp() and
emp_obj_chr_name().
(map,  cmd_move_map):  Switch to EF_SHIP as unit_map does not default
to EF_SHIP for EF_BAD anymore.

17 years ago(get_empobj_mob_max): New. Return maximum mobility based on ef_type.
Ron Koenderink [Mon, 24 Jul 2006 13:40:12 +0000 (13:40 +0000)]
(get_empobj_mob_max): New. Return maximum mobility based on ef_type.
(miss): Use new get_empobj_mob_max().

17 years ago(swaps): Failed to update coastal flags. Was missed in the changeset
Markus Armbruster [Fri, 21 Jul 2006 18:10:09 +0000 (18:10 +0000)]
(swaps): Failed to update coastal flags.  Was missed in the changeset
containing coastal.c rev. 1.1.
(set_coastal): New parameter olddes, to simplify fixing swaps().
Callers changed.

17 years ago(update_coastal_flag, coast_sea_to_land, coastal_land_to_sea): Return
Markus Armbruster [Fri, 21 Jul 2006 18:01:28 +0000 (18:01 +0000)]
(update_coastal_flag, coast_sea_to_land, coastal_land_to_sea): Return
new coastal flag instead of updating the sector.  This is a bit
simpler.  Change arguments from sectors to coordinates to make it
obvious that the sector is not touched.
(set_coastal): Update the coastal flag, but leave putsect() to
callers.  All existing callers do that anyway.

17 years agoClarify doc.
Markus Armbruster [Fri, 21 Jul 2006 06:05:50 +0000 (06:05 +0000)]
Clarify doc.

17 years agoBump version to 4.3.8.
Markus Armbruster [Fri, 21 Jul 2006 05:28:47 +0000 (05:28 +0000)]
Bump version to 4.3.8.

17 years ago(put_empobj): New. Put generic empobj into the appropriate data file.
Ron Koenderink [Thu, 20 Jul 2006 14:12:35 +0000 (14:12 +0000)]
(put_empobj): New.  Put generic empobj into the appropriate data file.
(get_empobj_chr): New.  Get characteristics for empobj.
(mission, build_mission_list_type): Switch to use new
functions put_empobj() and get_empobj_chr().

17 years ago(march, navi): Provide equivalent functionality to map in move(), expl()
Ron Koenderink [Thu, 20 Jul 2006 13:33:11 +0000 (13:33 +0000)]
(march, navi): Provide equivalent functionality to map in move(), expl()
and tran(). Allow map and bmap to access the regular map command
parameters.

17 years ago(prod_nat): Change the wording from "total pop is" to
Ron Koenderink [Thu, 20 Jul 2006 01:29:25 +0000 (01:29 +0000)]
(prod_nat): Change the wording from "total pop is" to
"total pop was" to be less confusing.  The total population
display is the total at the start of the update, not after the
update is complete.

17 years ago[_WIN32]: Add io.h to pickup open/close externs for MSVC environments.
Ron Koenderink [Wed, 19 Jul 2006 01:22:57 +0000 (01:22 +0000)]
[_WIN32]: Add io.h to pickup open/close externs for MSVC environments.

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().