]>
git.pond.sub.org Git - empserver/log
Markus Armbruster [Tue, 16 May 2006 21:39:14 +0000 (21:39 +0000)]
Another 4.3.3. change.
Tag 4.0.0 with the date of the r.g.e. announcement.
Markus Armbruster [Tue, 16 May 2006 20:46:07 +0000 (20:46 +0000)]
Update for current code.
Markus Armbruster [Tue, 16 May 2006 20:06:24 +0000 (20:06 +0000)]
(powe): Simplify.
(gen_power): Remove redundant parenthesis.
Markus Armbruster [Tue, 16 May 2006 19:54:33 +0000 (19:54 +0000)]
Fix rev. 1.31.
Markus Armbruster [Tue, 16 May 2006 18:59:19 +0000 (18:59 +0000)]
(powe): Rewrite computation of targets[] for power c using
snxtitem()/nxtitem(), for simplicity and more uniform syntax. Country
names no longer work when specifying more than one country (snxtitem()
restriction). As usual with nxtitem(), silently ignore unsuitable
items (the old code complained and failed). Don't skip powerless
countries for power c. Closes #
1025607 .
(set_target): Unused, remove.
Markus Armbruster [Tue, 16 May 2006 18:46:04 +0000 (18:46 +0000)]
Fix markup.
Markus Armbruster [Sun, 14 May 2006 19:35:40 +0000 (19:35 +0000)]
Update for 4.3.3.
Markus Armbruster [Sun, 14 May 2006 19:33:43 +0000 (19:33 +0000)]
Provide example, fix pasto.
Markus Armbruster [Sun, 14 May 2006 18:26:25 +0000 (18:26 +0000)]
(shiprepair, planerepair, landrepair): Simplify materials code. No
functional changes.
Markus Armbruster [Sun, 14 May 2006 18:23:44 +0000 (18:23 +0000)]
(shiprepair, landrepair): Always return 1. Change to return void.
Simplify callers.
(prod_ship, upd_ship, prod_land, upd_land): Move test for mineff.
(upd_land, feed_land): Move food resupply.
(landrepair): Don't putsect(), update code works directly on cache.
Markus Armbruster [Sun, 14 May 2006 18:13:55 +0000 (18:13 +0000)]
(upd_plane, planerepair): New, factored out of prod_plane(). No
functional changes.
Markus Armbruster [Sun, 14 May 2006 18:09:33 +0000 (18:09 +0000)]
(prod_plane): Simplify carrier repair code. Oops on bad carrier.
Markus Armbruster [Sun, 14 May 2006 17:54:52 +0000 (17:54 +0000)]
(prod_plane): Rename plp to pcp, remove redundant desc. Tally build
cost without rounding, like ships and land units do.
Markus Armbruster [Sun, 14 May 2006 17:40:00 +0000 (17:40 +0000)]
(prod_plane): Simplify test for moving satellite.
Markus Armbruster [Sun, 14 May 2006 14:06:00 +0000 (14:06 +0000)]
(effrange, torprange, fortrange): New.
(multifire, quiet_bigdef, torp, anti_torp, sd, sb)
(lnd_fort_interdiction, lnd_support, perform_mission, oprange)
(shp_fort_interdiction): Use them. This fixes forts shooting below
FORTEFF in quiet_bigdef(), lnd_fort_interdiction() and
shp_fort_interdiction(). Change variables for rounded ranges to int.
(quiet_bigdef, sd): Don't scale ship firing range by efficiency.
(dd, sb): Simplify.
(sb): Internal linkage.
(perform_mission): Rename range2 to vrange.
Markus Armbruster [Sun, 14 May 2006 07:52:20 +0000 (07:52 +0000)]
Break lines more tastefully.
Markus Armbruster [Sat, 13 May 2006 15:30:30 +0000 (15:30 +0000)]
(nuke): Players need the uid to work with nukes, show it. Show
members introduced in nuke.h rev. 1.19 and 1.20: nuk_plane, nuk_effic,
nuk_tech, nuk_stockpile. Make output similar to the other unit
reports while we're at it.
Markus Armbruster [Sat, 13 May 2006 14:04:03 +0000 (14:04 +0000)]
(detonate): Change parameters from carrying plane to nuke and
airburst. Leave taking nuke off the plane to caller. Use coord for
coordinate parameters.
(pln_damage): Take nuke off the plane.
(detonate): Destroy the nuke. This is required since arming doesn't
remove nukes from the nuke file anymore (arm.c rev. 1.15).
Markus Armbruster [Sat, 13 May 2006 13:41:02 +0000 (13:41 +0000)]
(nuk_postread): Update nuke location to match that of the plane
carrying it. This is required since arming doesn't remove nukes from
the nuke file anymore (arm.c rev. 1.15).
(nuk_prewrite): Properly destroy nuke. This is required since nuke
file contains individual nukes instead of stockpiles (nuke.h
rev. 1.19).
Markus Armbruster [Sat, 13 May 2006 07:56:12 +0000 (07:56 +0000)]
(coun_cmd): Multiple client commands could overrun player->client[].
Reported by Luigi Auriemma.
Markus Armbruster [Sat, 13 May 2006 07:44:52 +0000 (07:44 +0000)]
Remove unused variables.
Markus Armbruster [Sat, 13 May 2006 07:43:59 +0000 (07:43 +0000)]
(look_land): Use roundintby() instead of ldround() for int argument.
Markus Armbruster [Sat, 13 May 2006 07:42:18 +0000 (07:42 +0000)]
Remove redundant casts.
Markus Armbruster [Sat, 13 May 2006 07:24:10 +0000 (07:24 +0000)]
(knockdown): Destroy nukes on collapsing bridges. Before, you could
rescue them by building a new bridge or arming them on naval planes.
Markus Armbruster [Sat, 13 May 2006 07:22:47 +0000 (07:22 +0000)]
(pln_prewrite): Destroy nuke along with the plane carrying it. This
is required since arming doesn't remove nukes from the nuke file
anymore (arm.c rev. 1.15).
Markus Armbruster [Sat, 13 May 2006 07:16:59 +0000 (07:16 +0000)]
(player_coms): Break lines more tastefully.
Markus Armbruster [Sun, 7 May 2006 09:19:21 +0000 (09:19 +0000)]
(bp_lbcost): Don't convert the cost from double to float and back.
Simplify.
Markus Armbruster [Sat, 6 May 2006 11:07:35 +0000 (11:07 +0000)]
(hap_req): New.
(nati, populace): Use it.
(populace, nati): Change hap, pct from float to double, because they
are used as double.
(nati): Print happiness needed with just two decimals, like the other
levels.
Markus Armbruster [Sat, 6 May 2006 09:02:03 +0000 (09:02 +0000)]
(fuel): Change extra from float to double, because its value is always
computed and used in double.
Markus Armbruster [Sat, 6 May 2006 08:44:12 +0000 (08:44 +0000)]
(build_ship, build_land, build_plane): Compute initial efficiency in
double rather than float, because all its uses convert it to double.
Remove redundant casts.
Markus Armbruster [Sat, 6 May 2006 08:41:01 +0000 (08:41 +0000)]
(comm_bomb): Compute damage percentage in double rather than float,
because all its uses convert it to double.
Markus Armbruster [Sat, 6 May 2006 08:34:33 +0000 (08:34 +0000)]
Do not cast to float where default argument promotion obviously
converts the cast's result to double. Such casts are ugly and may
lose precision.
Markus Armbruster [Sat, 6 May 2006 08:26:31 +0000 (08:26 +0000)]
Do not cast to float where usual arithmetic conversions obviously
convert the cast's result to double. Such casts are ugly and may lose
precision.
Markus Armbruster [Sat, 6 May 2006 07:37:00 +0000 (07:37 +0000)]
(nukstr): Make it a struct genitem: add members nuk_effic, nuk_mobil,
nuk_tech, nuk_stockpile, nuk_opx, nuk_opy, nuk_mission, nuk_radius.
These have no effect, yet.
(build_nuke): Initialize them.
(nuke_ca): Add genitem selectors: effic, mobil, tech, group, opx, opy,
mission, radius.
(tran_nuke): Zap mission, just in case somebody invents missions for
nukes.
(trade_desc): Show tech and efficiency, for consistency with other
units.
Markus Armbruster [Sat, 6 May 2006 07:20:21 +0000 (07:20 +0000)]
Change nuke storage and commands to match other units:
(nukstr): Hold one nuke instead of a stockpile: replace members nuk_n,
nuk_types by nuk_type, nuk_plane. Add nuk_land for completeness, like
nuk_ship it's not yet used.
(nuke_ca): Update accordingly: replace selectors number and types by
type and plane.
(build_nuke): Update accordingly.
(ndump, nuke): Update accordingly. Output is no longer sorted by
location, and nukes in same location no longer share id. nuke's extra
columns for nuclear plants are repeated for every nuke.
(trade_desc): Update accordingly.
(cede, grab_sect, check_nuke_ok, detonate, trade_nameof): Talk about
nukes instead of nuclear stockpiles.
(arm, disarm): Rewrite, split off new disarm(). Don't remove nuke
from the nuke file on arm. Allow usual plane syntax, not just plane
number. Change second argument from nuke type to nuke number. When
plane is already armed, ignore nuke argument and rearm (broken in
4.2.6).
(tran_nuke): Update for changed struct nukstr, make as similar as
possible to tran_plane. Change syntax to match transport plane.
(player_coms): Update arm, disarm and transport accordingly.
(prnuke, nuk_on_plane): New.
(nuk_add, nuk_delete): Stockpile management, remove.
Markus Armbruster [Sat, 6 May 2006 06:16:53 +0000 (06:16 +0000)]
Don't wrap global variables in a struct for no reason:
(LwpMaxfd, LwpNfds, LwpReadfds, LwpWritefds, LwpFdwait, LwpDelayq)
(LwpSelProc): New, matching members of LwpSelect, internal linkage.
(lwpSelect, LwpSelect): Remove.
Markus Armbruster [Mon, 1 May 2006 17:10:50 +0000 (17:10 +0000)]
(lwpReschedule): Use CANT_HAPPEN() and abort() instead of lwpStatus()
and exit() for fatal internal errors.
Markus Armbruster [Mon, 1 May 2006 17:10:11 +0000 (17:10 +0000)]
(lwpSelect): Use logerror() instead of lwpStatus() to report fatal
error.
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.