]> git.pond.sub.org Git - empserver/log
empserver
18 years agoRemove redundant casts of argument to (prototyped) double parameter.
Markus Armbruster [Mon, 1 May 2006 12:34:16 +0000 (12:34 +0000)]
Remove redundant casts of argument to (prototyped) double parameter.

18 years ago(starve): Prompted twice for sectors when first argument was empty,
Markus Armbruster [Mon, 1 May 2006 06:52:48 +0000 (06:52 +0000)]
(starve): Prompted twice for sectors when first argument was empty,
fix.  Simplify.

18 years ago(increase_mob): Call time() just once, the second call can only
Markus Armbruster [Sun, 30 Apr 2006 18:38:52 +0000 (18:38 +0000)]
(increase_mob): Call time() just once, the second call can only
introduce inaccuracy.  Simplify the loop; it still doesn't make much
sense.

18 years ago(find_escorts, perform_mission): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 18:31:13 +0000 (18:31 +0000)]
(find_escorts, perform_mission): Simplify.

18 years ago(fire_dchrg, fire_torp): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 18:28:54 +0000 (18:28 +0000)]
(fire_dchrg, fire_torp): Simplify.

18 years ago(gen_power): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 18:25:50 +0000 (18:25 +0000)]
(gen_power): Simplify.

18 years ago(get_couval, get_outstand): Remove. Unused since automatic loans were
Markus Armbruster [Sun, 30 Apr 2006 18:20:23 +0000 (18:20 +0000)]
(get_couval, get_outstand): Remove.  Unused since automatic loans were
removed (buy.c rev. 1.18, trad.c rev. 1.15), should have been removed
then.

18 years agoReorder function definitions.
Markus Armbruster [Sun, 30 Apr 2006 16:35:43 +0000 (16:35 +0000)]
Reorder function definitions.

18 years ago(lload): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 16:28:48 +0000 (16:28 +0000)]
(lload): Simplify.

18 years ago(MAX): Remove redundant definition.
Markus Armbruster [Sun, 30 Apr 2006 16:26:51 +0000 (16:26 +0000)]
(MAX): Remove redundant definition.

18 years agoFix another insufficiently parenthesized macro expansion.
Markus Armbruster [Sun, 30 Apr 2006 16:25:58 +0000 (16:25 +0000)]
Fix another insufficiently parenthesized macro expansion.

18 years ago(buil): Clarify.
Markus Armbruster [Sun, 30 Apr 2006 16:20:14 +0000 (16:20 +0000)]
(buil): Clarify.

18 years agoFix the previous revision.
Markus Armbruster [Sun, 30 Apr 2006 16:18:35 +0000 (16:18 +0000)]
Fix the previous revision.

18 years ago(pln_arm): Change parameter mission from int to char to clearly
Markus Armbruster [Sun, 30 Apr 2006 16:15:33 +0000 (16:15 +0000)]
(pln_arm): Change parameter mission from int to char to clearly
document its use.

18 years agoFix insufficiently parenthesized macro expansions.
Markus Armbruster [Sun, 30 Apr 2006 16:08:45 +0000 (16:08 +0000)]
Fix insufficiently parenthesized macro expansions.

18 years agoRemove declaration that should have been removed in rev. 1.9. Doc
Markus Armbruster [Sun, 30 Apr 2006 13:20:48 +0000 (13:20 +0000)]
Remove declaration that should have been removed in rev. 1.9.  Doc
fix.  register purge.

18 years ago(sate): Use ef_byname_from() for second argument.
Markus Armbruster [Sun, 30 Apr 2006 13:10:34 +0000 (13:10 +0000)]
(sate): Use ef_byname_from() for second argument.

18 years ago(TERR_MAX): New.
Markus Armbruster [Sun, 30 Apr 2006 12:56:41 +0000 (12:56 +0000)]
(TERR_MAX): New.
(terr): Use it.

(terr): When the territory number is bad, do not loop prompting, just
fail.  That's what the vast majority of commands do.

18 years ago(retr, lretr): Readability fixes.
Markus Armbruster [Sun, 30 Apr 2006 12:52:30 +0000 (12:52 +0000)]
(retr, lretr): Readability fixes.

18 years ago(bomb, drop, fly, para, reco): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 12:48:21 +0000 (12:48 +0000)]
(bomb, drop, fly, para, reco): Simplify.

18 years ago(islist): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 12:36:28 +0000 (12:36 +0000)]
(islist): Simplify.

18 years agoNormalize unsigned int to just unsigned.
Markus Armbruster [Sun, 30 Apr 2006 12:26:07 +0000 (12:26 +0000)]
Normalize unsigned int to just unsigned.

18 years agoNormalize long int and short int to just long and short.
Markus Armbruster [Sun, 30 Apr 2006 12:05:23 +0000 (12:05 +0000)]
Normalize long int and short int to just long and short.

18 years ago(do_desi): Improve message when designation doesn't exist.
Markus Armbruster [Sun, 30 Apr 2006 11:56:01 +0000 (11:56 +0000)]
(do_desi): Improve message when designation doesn't exist.

18 years ago(ask_olist, att_fight): Oops on bad combat mode. Fixes compiler
Markus Armbruster [Sun, 30 Apr 2006 11:35:53 +0000 (11:35 +0000)]
(ask_olist, att_fight): Oops on bad combat mode.  Fixes compiler
warnings.

18 years ago(pr_ship, doship, pr_land, dounit): Remove keys deprecated in
Markus Armbruster [Sun, 30 Apr 2006 09:21:57 +0000 (09:21 +0000)]
(pr_ship, doship, pr_land, dounit): Remove keys deprecated in
rev. 1.20.

(prsect, doland): Deprecate key 'C'.

(pr_plane, doplane): Deprecate keys 'a' and 'd'.

(pr_land, dounit): Deprecate key 'X'.

(pr_ship, doship): Deprecate keys 'H', 'P', 'X' and 'Y'.

(docountry, dounit): Remove parameter farg.

18 years ago(att_ask_offense, ask_move_in): land_answer[] is indexed by army
Markus Armbruster [Sun, 30 Apr 2006 08:53:22 +0000 (08:53 +0000)]
(att_ask_offense, ask_move_in): land_answer[] is indexed by army
character, reduce size accordingly.

(att_prompt, ask_move_in_off): Remove dead code.

(att_reacting_units): Simplify.

18 years ago(coastal_sea_to_land, coastal_land_to_sea): Remove unused parameter
Markus Armbruster [Sun, 30 Apr 2006 08:46:14 +0000 (08:46 +0000)]
(coastal_sea_to_land, coastal_land_to_sea): Remove unused parameter
des.

18 years agoRemove dead code.
Markus Armbruster [Sun, 30 Apr 2006 08:43:28 +0000 (08:43 +0000)]
Remove dead code.

18 years agoFix long lines. No functional changes.
Markus Armbruster [Sun, 30 Apr 2006 08:39:20 +0000 (08:39 +0000)]
Fix long lines.  No functional changes.

18 years ago(rea): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:38:06 +0000 (08:38 +0000)]
(rea): Simplify.

18 years ago(lowerit): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:37:06 +0000 (08:37 +0000)]
(lowerit): Simplify.

18 years ago(grin): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:36:41 +0000 (08:36 +0000)]
(grin): Simplify.

18 years ago(dist): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:34:05 +0000 (08:34 +0000)]
(dist): Simplify.

18 years ago(best): Rename local variable.
Markus Armbruster [Sun, 30 Apr 2006 08:32:50 +0000 (08:32 +0000)]
(best): Rename local variable.

18 years agoDoc fix.
Markus Armbruster [Sun, 30 Apr 2006 08:31:52 +0000 (08:31 +0000)]
Doc fix.

18 years ago(lnd_mess): Internal linkage.
Markus Armbruster [Sun, 30 Apr 2006 08:29:18 +0000 (08:29 +0000)]
(lnd_mess): Internal linkage.

18 years ago(s_char): Remove. Use signed char for small integers, plain char for
Markus Armbruster [Sat, 29 Apr 2006 16:25:17 +0000 (16:25 +0000)]
(s_char): Remove.  Use signed char for small integers, plain char for
characters.

18 years agoRecent s_char purge changed element types to s_char *, but missed
Markus Armbruster [Sat, 29 Apr 2006 16:14:48 +0000 (16:14 +0000)]
Recent s_char purge changed element types to s_char *, but missed
patterns malloc(N * sizeof(s_char *)), fix.

18 years ago(cede_sect): Remove dead code.
Markus Armbruster [Sat, 29 Apr 2006 15:28:30 +0000 (15:28 +0000)]
(cede_sect): Remove dead code.

18 years ago(fly): Use void * for generic pointer dst_ptr.
Markus Armbruster [Sat, 29 Apr 2006 15:27:48 +0000 (15:27 +0000)]
(fly): Use void * for generic pointer dst_ptr.

18 years ago(vis, visbuf): Rev. 1.15 changed base type from s_char to char. This
Markus Armbruster [Sat, 29 Apr 2006 15:19:57 +0000 (15:19 +0000)]
(vis, visbuf): Rev. 1.15 changed base type from s_char to char.  This
is misleading, as the elements are numbers.  Change to signed char.

18 years agoBump version to 4.3.3.
Markus Armbruster [Sat, 29 Apr 2006 06:43:48 +0000 (06:43 +0000)]
Bump version to 4.3.3.

18 years agos_char purge directed by compiler warnings.
Markus Armbruster [Sat, 29 Apr 2006 06:41:45 +0000 (06:41 +0000)]
s_char purge directed by compiler warnings.

18 years agoStill more 4.3.2 changes. v4.3.2
Markus Armbruster [Thu, 27 Apr 2006 18:02:18 +0000 (18:02 +0000)]
Still more 4.3.2 changes.

18 years ago(info.nr/all, info.html/all.html, sources.mk): Pass LC_ALL=C in the
Markus Armbruster [Wed, 26 Apr 2006 19:08:17 +0000 (19:08 +0000)]
(info.nr/all, info.html/all.html, sources.mk): Pass LC_ALL=C in the
environment to make output independent of user's locale.

18 years agoOnly L_SUPPLY units can't attack as of 4.0.0, fix info Attacking,
Markus Armbruster [Wed, 26 Apr 2006 18:49:33 +0000 (18:49 +0000)]
Only L_SUPPLY units can't attack as of 4.0.0, fix info Attacking,
remove dead code.

18 years agoUpdate known contributors comment.
Markus Armbruster [Wed, 26 Apr 2006 18:14:54 +0000 (18:14 +0000)]
Update known contributors comment.

18 years agoRemove redundant declaration.
Markus Armbruster [Wed, 26 Apr 2006 18:14:16 +0000 (18:14 +0000)]
Remove redundant declaration.

18 years ago(sources.mk): Sort file names to make output deterministic.
Markus Armbruster [Wed, 26 Apr 2006 18:13:25 +0000 (18:13 +0000)]
(sources.mk): Sort file names to make output deterministic.

18 years ago(guerrilla): Remove unused variable.
Markus Armbruster [Wed, 26 Apr 2006 17:51:38 +0000 (17:51 +0000)]
(guerrilla): Remove unused variable.

18 years ago(guerrilla): Round security unit raid value below one to zero instead
Markus Armbruster [Wed, 26 Apr 2006 16:54:29 +0000 (16:54 +0000)]
(guerrilla): Round security unit raid value below one to zero instead
of one.  Before, an empty, inefficient unit could be used to kill one
rebel per update.

18 years ago(guerrilla): Security units' raid was broken in 4.0.0: the number of
Markus Armbruster [Wed, 26 Apr 2006 16:43:25 +0000 (16:43 +0000)]
(guerrilla): Security units' raid was broken in 4.0.0: the number of
che killed was 100 times too small, thus zero for all practical cases.
4.2.7 attempted to fix it, but left it broken for efficiency < 100.
It also increased deadliness of 100% units by a factor of 2.5.
Restore pre-4.0.0 behavior.

18 years agoMore 4.3.2 changes.
Markus Armbruster [Mon, 24 Apr 2006 18:50:22 +0000 (18:50 +0000)]
More 4.3.2 changes.

18 years ago(player_addrlen): Change type to size_t. Fixes type error in
Markus Armbruster [Mon, 24 Apr 2006 18:34:25 +0000 (18:34 +0000)]
(player_addrlen): Change type to size_t.  Fixes type error in
player_init(), which was most likely fatal on 64 bit hosts.  Broken in
rev. 1.34.

18 years ago(snxtitem): s_char purge.
Markus Armbruster [Mon, 24 Apr 2006 18:27:31 +0000 (18:27 +0000)]
(snxtitem): s_char purge.

18 years agoFix char / s_char inconsistencies. Build was broken on some systems
Markus Armbruster [Mon, 24 Apr 2006 18:24:23 +0000 (18:24 +0000)]
Fix char / s_char inconsistencies.  Build was broken on some systems
since the first one crept in with src/lib/subs/retreat.c rev. 1.34.

18 years agoUpdate for 4.3.2.
Markus Armbruster [Sun, 23 Apr 2006 13:08:47 +0000 (13:08 +0000)]
Update for 4.3.2.

18 years ago(xdvisible): Add case EF_REALM. Should have been added along with
Markus Armbruster [Sun, 23 Apr 2006 12:33:33 +0000 (12:33 +0000)]
(xdvisible): Add case EF_REALM.  Should have been added along with
EF_REALM (file.h rev. 1.52).  This made xdump leak everybody's realms.

18 years ago(login_coms): Remove erroneous declaration. Move definition before
Ron Koenderink [Sat, 22 Apr 2006 14:13:05 +0000 (14:13 +0000)]
(login_coms): Remove erroneous declaration.  Move definition before
uses.  Add required function declarations.

18 years ago(map, sct, rout): Remove unused local variables.
Ron Koenderink [Fri, 21 Apr 2006 13:19:16 +0000 (13:19 +0000)]
(map, sct, rout): Remove unused local variables.

18 years ago(snxtsct): Iteration order for `*' disclosed the real origin. Fix.
Markus Armbruster [Thu, 20 Apr 2006 19:06:50 +0000 (19:06 +0000)]
(snxtsct): Iteration order for `*' disclosed the real origin.  Fix.
Mapping commands used to work around this bug, until map.c rev. 1.18,
rout.c 1.18, sct.c 1.17, surv.c 1.18 removed the work-around and thus
exposed the bug.

18 years ago(login_coms): Make declaration consistent with definition.
Markus Armbruster [Thu, 20 Apr 2006 18:40:59 +0000 (18:40 +0000)]
(login_coms): Make declaration consistent with definition.

18 years agoFix missing include. Closes #1464069.
Markus Armbruster [Thu, 20 Apr 2006 18:39:57 +0000 (18:39 +0000)]
Fix missing include.  Closes #1464069.

18 years ago(att_prompt): Do the right thing when player aborts. Simplify.
Markus Armbruster [Mon, 17 Apr 2006 17:53:16 +0000 (17:53 +0000)]
(att_prompt): Do the right thing when player aborts.  Simplify.

18 years ago(CANT_REACH): New. Use it instead of CANT_HAPPEN() where possible.
Markus Armbruster [Mon, 17 Apr 2006 17:36:07 +0000 (17:36 +0000)]
(CANT_REACH): New.  Use it instead of CANT_HAPPEN() where possible.
(oops): Cope with NULL argument passed by CANT_REACH().

18 years agoFix long lines. No functional changes.
Markus Armbruster [Mon, 17 Apr 2006 16:38:43 +0000 (16:38 +0000)]
Fix long lines.  No functional changes.

18 years ago(XYOFFSET): Parenthesize macro parameters in expansion.
Markus Armbruster [Mon, 17 Apr 2006 12:51:23 +0000 (12:51 +0000)]
(XYOFFSET): Parenthesize macro parameters in expansion.

18 years agoTrim superflous casts and parenthesis.
Markus Armbruster [Mon, 17 Apr 2006 08:24:12 +0000 (08:24 +0000)]
Trim superflous casts and parenthesis.

18 years ago(noise): Drop second parameter, it is always true.
Markus Armbruster [Mon, 17 Apr 2006 08:16:48 +0000 (08:16 +0000)]
(noise): Drop second parameter, it is always true.

18 years ago(getin): Confusing. Redesign.
Markus Armbruster [Mon, 17 Apr 2006 08:13:20 +0000 (08:13 +0000)]
(getin): Confusing.  Redesign.
(edit): Simplify.

(doland): Spelling fix.

18 years ago(doplane): Don't arbitrarily truncate value for key 'a' and 'd'.
Markus Armbruster [Mon, 17 Apr 2006 08:09:14 +0000 (08:09 +0000)]
(doplane): Don't arbitrarily truncate value for key 'a' and 'd'.

s_char purge.

18 years agoBump version to 4.3.2.
Markus Armbruster [Mon, 17 Apr 2006 07:43:39 +0000 (07:43 +0000)]
Bump version to 4.3.2.

18 years agoDon't explicitly dereference function pointers in calls. No
Markus Armbruster [Sun, 16 Apr 2006 17:42:19 +0000 (17:42 +0000)]
Don't explicitly dereference function pointers in calls.  No
functional changes.

18 years agoFix long lines. No functional changes.
Markus Armbruster [Sun, 16 Apr 2006 17:20:33 +0000 (17:20 +0000)]
Fix long lines.  No functional changes.

18 years agoFinal polish for 4.3.1. v4.3.1
Markus Armbruster [Sat, 15 Apr 2006 11:43:27 +0000 (11:43 +0000)]
Final polish for 4.3.1.

18 years ago(sail): There is no qsail command, remove test for it. Test the
Markus Armbruster [Sat, 15 Apr 2006 10:55:19 +0000 (10:55 +0000)]
(sail): There is no qsail command, remove test for it.  Test the
second argument only when the command is sail.  Before, `unsail 42 q'
showed the sailing path instead of clearing it.

18 years agoUpdate for 4.3.1.
Markus Armbruster [Wed, 5 Apr 2006 18:54:18 +0000 (18:54 +0000)]
Update for 4.3.1.

18 years ago(verify_row): uid check was too strict.
Markus Armbruster [Wed, 5 Apr 2006 18:47:02 +0000 (18:47 +0000)]
(verify_row): uid check was too strict.

18 years agoComment grammar fix.
Markus Armbruster [Wed, 5 Apr 2006 18:34:54 +0000 (18:34 +0000)]
Comment grammar fix.

18 years agoNew section on booleans. Elaborate thread safety.
Markus Armbruster [Wed, 5 Apr 2006 18:33:41 +0000 (18:33 +0000)]
New section on booleans.  Elaborate thread safety.

18 years agoFix the previous revision.
Markus Armbruster [Wed, 5 Apr 2006 18:15:07 +0000 (18:15 +0000)]
Fix the previous revision.

18 years ago(bestownedpath, owned_and_navigable): Terrain parameter isn't really
Markus Armbruster [Wed, 5 Apr 2006 09:50:45 +0000 (09:50 +0000)]
(bestownedpath, owned_and_navigable): Terrain parameter isn't really
used, remove it.  Use null bigmap argument to ignore terrain (flying),
non-null for navigation.  Callers changed.

18 years ago(bestownedpath): Return NULL on long path instead of "?". Terminate
Markus Armbruster [Wed, 5 Apr 2006 09:30:38 +0000 (09:30 +0000)]
(bestownedpath): Return NULL on long path instead of "?".  Terminate
returned path with 'h'.  This makes BestShipPath() and BestAirPath()
more similar to BestLandPath().  Simplify callers.

18 years ago(BestAirPath): Some callers assumed non-null return value must be the
Markus Armbruster [Wed, 5 Apr 2006 09:13:03 +0000 (09:13 +0000)]
(BestAirPath): Some callers assumed non-null return value must be the
first argument.  Fix them.  Simplify bestownedpath().

18 years ago(owned_and_navigable): Rework rev. 1.18: do check the real sector, but
Markus Armbruster [Wed, 5 Apr 2006 08:51:50 +0000 (08:51 +0000)]
(owned_and_navigable): Rework rev. 1.18: do check the real sector, but
only if it's owned or allied.  Check it before the bmap, and do it
just like shp_check_nav() does (should use common code).

18 years ago(getpath): Supply the missing code for P_SAILING. This makes the sail
Markus Armbruster [Wed, 5 Apr 2006 07:30:41 +0000 (07:30 +0000)]
(getpath): Supply the missing code for P_SAILING.  This makes the sail
command accept destination sectors as well as paths.  Clean up the
case discrimination.

18 years ago(P_NONE, P_WALKING, P_FLYING, P_SAILING, p_mode): Turn into new
Markus Armbruster [Wed, 5 Apr 2006 07:21:49 +0000 (07:21 +0000)]
(P_NONE, P_WALKING, P_FLYING, P_SAILING, p_mode): Turn into new
enumeration p_mode.  Users changed.  s_char and register purge.

18 years ago(tend): Fix rev. 1.20: used to send bulletin to last tendee's owner,
Markus Armbruster [Wed, 5 Apr 2006 07:06:58 +0000 (07:06 +0000)]
(tend): Fix rev. 1.20: used to send bulletin to last tendee's owner,
unless that's the player, regardless of success.  Send them for every
successful tend to a foreign ship.

18 years ago(build_mission_list_type): Simplify.
Markus Armbruster [Wed, 29 Mar 2006 19:46:39 +0000 (19:46 +0000)]
(build_mission_list_type): Simplify.

(show_mission): Plug memory leak.

18 years ago(mission): Silence compiler warning.
Markus Armbruster [Wed, 29 Mar 2006 19:40:42 +0000 (19:40 +0000)]
(mission): Silence compiler warning.

18 years ago(mission): Plug memory leak. s_char purge.
Markus Armbruster [Wed, 29 Mar 2006 19:40:22 +0000 (19:40 +0000)]
(mission): Plug memory leak.  s_char purge.

18 years ago(iop): Remove unused members assoc, notify.
Markus Armbruster [Wed, 29 Mar 2006 19:19:47 +0000 (19:19 +0000)]
(iop): Remove unused members assoc, notify.
(io_open): Remove unused parameters assoc, notify.  Caller changed.

18 years ago(main): Remove superflous calloc(). s_char purge.
Markus Armbruster [Wed, 29 Mar 2006 16:56:14 +0000 (16:56 +0000)]
(main): Remove superflous calloc().  s_char purge.

18 years ago(bestownedpath): Fix test of end sector for terrain string starting
Markus Armbruster [Wed, 29 Mar 2006 16:12:00 +0000 (16:12 +0000)]
(bestownedpath): Fix test of end sector for terrain string starting
with 'R'.  Broken in 4.2.2.  No such terrain strings occur.

18 years ago(owned_and_navigable): Do not check the real sector, only the bmap.
Markus Armbruster [Wed, 29 Mar 2006 16:06:30 +0000 (16:06 +0000)]
(owned_and_navigable): Do not check the real sector, only the bmap.
Checking the real sector leaks information, which can be abused to
test whether an arbitrary sector is unfriendly or an inefficient
harbor or bridge, at the cost of some ship mobility (I think).
Initially broken ca. 1993, went through several changes, but the leak
survived them all.

18 years ago(emp_config): Failed to call set_dirs() when default econfig file
Markus Armbruster [Wed, 29 Mar 2006 13:14:55 +0000 (13:14 +0000)]
(emp_config): Failed to call set_dirs() when default econfig file
doesn't exist.

18 years ago(genlist): Move from include/mission.h to src/lib/subs/mission.c.
Markus Armbruster [Wed, 29 Mar 2006 07:53:25 +0000 (07:53 +0000)]
(genlist): Move from include/mission.h to src/lib/subs/mission.c.

(genlist): Remove unused members x, y.

(genlist): Use void * for generic pointer members cp, thing.  Change
users not to cast.

(oprange): Oops on bad argument.

18 years ago(as_data): Use void * for userdata member and userdata parameter of
Markus Armbruster [Tue, 28 Mar 2006 21:00:00 +0000 (21:00 +0000)]
(as_data): Use void * for userdata member and userdata parameter of
callbacks.  Users changed.

18 years ago(bp_init): Use semantically correct return type instead of s_char *.
Markus Armbruster [Tue, 28 Mar 2006 20:42:57 +0000 (20:42 +0000)]
(bp_init): Use semantically correct return type instead of s_char *.
Caller changed.