]>
git.pond.sub.org Git - empserver/log
Markus Armbruster [Mon, 1 May 2006 12:34:16 +0000 (12:34 +0000)]
Remove redundant casts of argument to (prototyped) double parameter.
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.
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.
Markus Armbruster [Sun, 30 Apr 2006 18:31:13 +0000 (18:31 +0000)]
(find_escorts, perform_mission): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 18:28:54 +0000 (18:28 +0000)]
(fire_dchrg, fire_torp): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 18:25:50 +0000 (18:25 +0000)]
(gen_power): Simplify.
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.
Markus Armbruster [Sun, 30 Apr 2006 16:35:43 +0000 (16:35 +0000)]
Reorder function definitions.
Markus Armbruster [Sun, 30 Apr 2006 16:28:48 +0000 (16:28 +0000)]
(lload): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 16:26:51 +0000 (16:26 +0000)]
(MAX): Remove redundant definition.
Markus Armbruster [Sun, 30 Apr 2006 16:25:58 +0000 (16:25 +0000)]
Fix another insufficiently parenthesized macro expansion.
Markus Armbruster [Sun, 30 Apr 2006 16:20:14 +0000 (16:20 +0000)]
(buil): Clarify.
Markus Armbruster [Sun, 30 Apr 2006 16:18:35 +0000 (16:18 +0000)]
Fix the previous revision.
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.
Markus Armbruster [Sun, 30 Apr 2006 16:08:45 +0000 (16:08 +0000)]
Fix insufficiently parenthesized macro expansions.
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.
Markus Armbruster [Sun, 30 Apr 2006 13:10:34 +0000 (13:10 +0000)]
(sate): Use ef_byname_from() for second argument.
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.
Markus Armbruster [Sun, 30 Apr 2006 12:52:30 +0000 (12:52 +0000)]
(retr, lretr): Readability fixes.
Markus Armbruster [Sun, 30 Apr 2006 12:48:21 +0000 (12:48 +0000)]
(bomb, drop, fly, para, reco): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 12:36:28 +0000 (12:36 +0000)]
(islist): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 12:26:07 +0000 (12:26 +0000)]
Normalize unsigned int to just unsigned.
Markus Armbruster [Sun, 30 Apr 2006 12:05:23 +0000 (12:05 +0000)]
Normalize long int and short int to just long and short.
Markus Armbruster [Sun, 30 Apr 2006 11:56:01 +0000 (11:56 +0000)]
(do_desi): Improve message when designation doesn't exist.
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.
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.
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.
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.
Markus Armbruster [Sun, 30 Apr 2006 08:43:28 +0000 (08:43 +0000)]
Remove dead code.
Markus Armbruster [Sun, 30 Apr 2006 08:39:20 +0000 (08:39 +0000)]
Fix long lines. No functional changes.
Markus Armbruster [Sun, 30 Apr 2006 08:38:06 +0000 (08:38 +0000)]
(rea): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:37:06 +0000 (08:37 +0000)]
(lowerit): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:36:41 +0000 (08:36 +0000)]
(grin): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:34:05 +0000 (08:34 +0000)]
(dist): Simplify.
Markus Armbruster [Sun, 30 Apr 2006 08:32:50 +0000 (08:32 +0000)]
(best): Rename local variable.
Markus Armbruster [Sun, 30 Apr 2006 08:31:52 +0000 (08:31 +0000)]
Doc fix.
Markus Armbruster [Sun, 30 Apr 2006 08:29:18 +0000 (08:29 +0000)]
(lnd_mess): Internal linkage.
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.
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.
Markus Armbruster [Sat, 29 Apr 2006 15:28:30 +0000 (15:28 +0000)]
(cede_sect): Remove dead code.
Markus Armbruster [Sat, 29 Apr 2006 15:27:48 +0000 (15:27 +0000)]
(fly): Use void * for generic pointer dst_ptr.
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.
Markus Armbruster [Sat, 29 Apr 2006 06:43:48 +0000 (06:43 +0000)]
Bump version to 4.3.3.
Markus Armbruster [Sat, 29 Apr 2006 06:41:45 +0000 (06:41 +0000)]
s_char purge directed by compiler warnings.
Markus Armbruster [Thu, 27 Apr 2006 18:02:18 +0000 (18:02 +0000)]
Still more 4.3.2 changes.
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.
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.
Markus Armbruster [Wed, 26 Apr 2006 18:14:54 +0000 (18:14 +0000)]
Update known contributors comment.
Markus Armbruster [Wed, 26 Apr 2006 18:14:16 +0000 (18:14 +0000)]
Remove redundant declaration.
Markus Armbruster [Wed, 26 Apr 2006 18:13:25 +0000 (18:13 +0000)]
(sources.mk): Sort file names to make output deterministic.
Markus Armbruster [Wed, 26 Apr 2006 17:51:38 +0000 (17:51 +0000)]
(guerrilla): Remove unused variable.
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.
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.
Markus Armbruster [Mon, 24 Apr 2006 18:50:22 +0000 (18:50 +0000)]
More 4.3.2 changes.
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.
Markus Armbruster [Mon, 24 Apr 2006 18:27:31 +0000 (18:27 +0000)]
(snxtitem): s_char purge.
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.
Markus Armbruster [Sun, 23 Apr 2006 13:08:47 +0000 (13:08 +0000)]
Update for 4.3.2.
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.
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.
Ron Koenderink [Fri, 21 Apr 2006 13:19:16 +0000 (13:19 +0000)]
(map, sct, rout): Remove unused local variables.
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.
Markus Armbruster [Thu, 20 Apr 2006 18:40:59 +0000 (18:40 +0000)]
(login_coms): Make declaration consistent with definition.
Markus Armbruster [Thu, 20 Apr 2006 18:39:57 +0000 (18:39 +0000)]
Fix missing include. Closes #
1464069 .
Markus Armbruster [Mon, 17 Apr 2006 17:53:16 +0000 (17:53 +0000)]
(att_prompt): Do the right thing when player aborts. Simplify.
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().
Markus Armbruster [Mon, 17 Apr 2006 16:38:43 +0000 (16:38 +0000)]
Fix long lines. No functional changes.
Markus Armbruster [Mon, 17 Apr 2006 12:51:23 +0000 (12:51 +0000)]
(XYOFFSET): Parenthesize macro parameters in expansion.
Markus Armbruster [Mon, 17 Apr 2006 08:24:12 +0000 (08:24 +0000)]
Trim superflous casts and parenthesis.
Markus Armbruster [Mon, 17 Apr 2006 08:16:48 +0000 (08:16 +0000)]
(noise): Drop second parameter, it is always true.
Markus Armbruster [Mon, 17 Apr 2006 08:13:20 +0000 (08:13 +0000)]
(getin): Confusing. Redesign.
(edit): Simplify.
(doland): Spelling fix.
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.
Markus Armbruster [Mon, 17 Apr 2006 07:43:39 +0000 (07:43 +0000)]
Bump version to 4.3.2.
Markus Armbruster [Sun, 16 Apr 2006 17:42:19 +0000 (17:42 +0000)]
Don't explicitly dereference function pointers in calls. No
functional changes.
Markus Armbruster [Sun, 16 Apr 2006 17:20:33 +0000 (17:20 +0000)]
Fix long lines. No functional changes.
Markus Armbruster [Sat, 15 Apr 2006 11:43:27 +0000 (11:43 +0000)]
Final polish for 4.3.1.
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.
Markus Armbruster [Wed, 5 Apr 2006 18:54:18 +0000 (18:54 +0000)]
Update for 4.3.1.
Markus Armbruster [Wed, 5 Apr 2006 18:47:02 +0000 (18:47 +0000)]
(verify_row): uid check was too strict.
Markus Armbruster [Wed, 5 Apr 2006 18:34:54 +0000 (18:34 +0000)]
Comment grammar fix.
Markus Armbruster [Wed, 5 Apr 2006 18:33:41 +0000 (18:33 +0000)]
New section on booleans. Elaborate thread safety.
Markus Armbruster [Wed, 5 Apr 2006 18:15:07 +0000 (18:15 +0000)]
Fix the previous revision.
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.
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.
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().
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).
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.
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.
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.
Markus Armbruster [Wed, 29 Mar 2006 19:46:39 +0000 (19:46 +0000)]
(build_mission_list_type): Simplify.
(show_mission): Plug memory leak.
Markus Armbruster [Wed, 29 Mar 2006 19:40:42 +0000 (19:40 +0000)]
(mission): Silence compiler warning.
Markus Armbruster [Wed, 29 Mar 2006 19:40:22 +0000 (19:40 +0000)]
(mission): Plug memory leak. s_char purge.
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.
Markus Armbruster [Wed, 29 Mar 2006 16:56:14 +0000 (16:56 +0000)]
(main): Remove superflous calloc(). s_char purge.
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.
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.
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.
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.
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.
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.