b0a5d11a3f
(show_nuke_capab, show_ship_capab, show_plane_capab, show_land_capab)
...
(prxy, border, ac_encounter, look, budg): Fix misuse of pr() and PR():
passed formatted string instead of format string and arguments.
Correctness depends on argument values and tables not containing '%',
which is correct, but fragile.
2006-03-26 13:41:46 +00:00
65168f0d93
(comm_bomb, ship_bomb, land_bomb, pinflak_planedamage): Fix dangerous
...
misuse of pr(), PR() and mpr(): passed formatted string instead of
format string and arguments. Crash bug if formatted string contains
'%'. Players can put that in ship names...
2006-03-26 13:34:35 +00:00
ade364fa1d
(prunits, prplanes): Simplify, compute relation string instead of
...
format.
(prplanes): Fix dangerous misuse of pr(): passed formatted string
instead of format string and arguments. Crash bug if formatted string
contains '%'. Players can put that in country names...
2006-03-26 12:54:52 +00:00
7b4a164d0a
(prod): Simplify printing of materials used. Don't assume amount fits
...
into eight characters and item mnemo can't be '%'.
2006-03-26 12:37:22 +00:00
aee94ca077
(head_describe): Print the headline instead of returning the format
...
string. This simplifies format string checking.
2006-03-26 12:08:35 +00:00
197d8cd2ca
(prthresh): Remove format string parameter. Callers don't really need
...
that flexibility, and it makes format checking harder.
2006-03-26 10:21:57 +00:00
8cd3845b08
Remove useless multiplications with sizeof(char) and sizeof(s_char).
...
Replace by literal 1 in other contexts.
2006-03-26 10:16:08 +00:00
8ca2468706
(gift): Fix parameter types: natid instead of int, void * for generic
...
pointer, char * for string.
2006-03-26 08:18:34 +00:00
a6843eeba6
(gift, load_comm_ship, load_comm_land): Fix dangerous misuse of wu():
...
passed formatted string instead of format string and arguments. Crash
bug if formatted string contains '%'. Players can put that in ship
names...
2006-03-26 08:15:27 +00:00
0d0a305bf3
Remove silly superflous parenthesis.
2006-03-26 07:46:49 +00:00
2e32b87695
(buil): Simplify the loop for building multiple units. Unit type
...
argument "" no longer makes it prompt for the unit type on every
iteration.
2006-03-25 19:16:35 +00:00
90bddc6541
(buil): Return RET_FAIL on insufficient tech for bridge instead of
...
literal 2 (which is RET_SYN). Return RET_SYN on incorrect first
argument.
2006-03-25 18:56:34 +00:00
2a3da4916e
(build_ship, build_land, build_plane): Compute cost in floating-point.
...
It's better to round just once, when subtracting player->dolcost from
nat_money.
2006-03-25 16:36:45 +00:00
2625dc4b8f
(build_can_afford): New.
...
(build_ship, build_land, build_bridge, build_nuke, build_plane)
(build_tower): Use it. This changes some messages. Fixes ancient
bridge building race condition: while prompting for direction, another
build could clobber cash.
(cash): Remove.
2006-03-25 16:21:48 +00:00
38f3f7ea49
(trade_check_item_ok): New.
...
(trade_check_ok): Use it and simplify.
(set): Use new trade_check_item_ok(). The code replaced by it didn't
work (abusable bug).
2006-03-25 15:26:29 +00:00
79714720cc
(ontradingblock, trdswitchown): Second parameter is a generic pointer,
...
change it from int * to void *. Callers changed not to cast to int *.
2006-03-25 15:11:17 +00:00
05f64e8c3f
(genstr): Redundant. Replace by struct genitem.
2006-03-25 15:03:32 +00:00
9055031b7f
Fix the previous revision.
2006-03-25 09:08:58 +00:00
8054aafb9a
(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
...
defines them would be possible, but isn't worth the trouble. Replace
by unabbreviated types.
2006-03-25 07:05:34 +00:00
21bf6b41d4
Use NULL instead of (FOO *)0, it's easier to read.
2006-03-23 20:48:49 +00:00
be78c807e3
(map): Simplify loop control.
2006-03-23 20:13:38 +00:00
bddb20c7f0
(marc, navi): Permit any whitespace between route and optional
...
argument for radar, lookout, sonar, not just spaces.
2006-03-23 19:50:25 +00:00
aebcc536e4
(do_conv, enli, explore, move, shoo, s_commod): sct_mobil was changed
...
from u_char to short in 3.0.0, but many assignments still cast to
u_char. Remove casts.
2006-03-23 07:58:03 +00:00
c52a9a2822
New doc/xdump.
2006-03-06 18:27:37 +00:00
433bcb0d19
(xdump): Nicer prompts.
2006-02-26 18:16:10 +00:00
f5a9284867
Update known contributors comment.
2006-02-24 21:35:27 +00:00
c9b5c87d1e
(vers): Fix spacing.
2006-02-24 19:05:54 +00:00
7457fef9e7
(update_wantmin, update_policy_check, demand_check, upda): Remove the
...
ability to switch off demand updates by setting update_wantmin to
zero. Setting update_demandpolicy to UDDEM_DISABLE does the job.
(update_policy_check): Fix lower bound for blitz_time.
2006-02-24 19:02:01 +00:00
5b2f7a4d82
(vers): Clean up damage spill matrix.
...
(vers): Move show_custom() down somewhat.
(show_custom): Point players to show command.
2006-02-23 18:34:42 +00:00
99a1450c98
(EFF_CUSTOM): New.
...
(read_config_table_file): Set it.
(show_custom): Show it.
(vers): Use it.
2006-02-23 08:37:46 +00:00
91f88cf2ba
(show_opts): Revert rev. 1.13 `Pretend SHIPNAMES still exists...'
...
Clients had four months to adapt. Moreover, there have been other
changes that could well break clients, so backward compatibility is
gone anyway.
2006-02-23 07:32:41 +00:00
783b00bbad
(ichrstr): Rename member i_vtype to i_uid.
...
(ichr_ca): Rename selector vtype to uid.
2006-02-20 05:35:58 +00:00
2ddc989e09
Fit for the general public, not just for GUINEA_PIGS. Closes #928396 .
2006-02-19 18:47:50 +00:00
58f67c8e19
Change xdump nat to show only own country, and xdump cou to show to
...
deities what xdump nat used to show:
(cou_ca): Remove initializer.
(ef_init_srv): Initialize cou_ca[] from nat_ca[].
(xdvisible): Change case EF_NATION to return true only for owner
even for deities.
2006-02-17 18:38:50 +00:00
09773ca8cc
(xdvisible): Fix case EF_NATION for deities not to return true for
...
STAT_UNUSED.
2006-02-16 21:49:27 +00:00
4ad5bf51e1
(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.
...
(vers): Fix rev. 1.25 for fallout_spread. Beautify message.
(vers): Align collateral damage heading with the columns in the body.
2006-02-16 19:54:47 +00:00
Ron Koenderink
b7d0b66161
(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
...
(show_nuke_capab, vers, xdvisible, build.t, Options.t):
Remove opt_DRNUKE and replace with the following check
drnuke_const > MIN_DRNUKE_CONST.
Set MIN_DRNUKE_CONST to 0.001 to prevent issues with tiny values.
Change the default drnuke_const to 0.0 because in the stock game
opt_DRNUKE was disabled.
2006-02-16 02:14:08 +00:00
d5f6d74d05
(buil): Fix rev. 1.32: information on how to list nukes was incorrect
...
for opt_DRNUKE.
2006-02-15 19:47:56 +00:00
87af0f7fc4
Polish messages.
2006-02-12 23:00:06 +00:00
c50c2d2518
(xdeval): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
...
which broke NSC_STRINGY. Initialize from new parameter len. Callers
changed.
2006-02-11 07:25:28 +00:00
5d50b2accf
Doc update.
2006-02-09 19:48:21 +00:00
Ron Koenderink
b677413cfd
(zdon): Display current number of missed updates and number of
...
missed updates before vetoing begins.
2006-02-05 19:19:00 +00:00
Ron Koenderink
9f5aa41084
(vers): Add collateral damage matrix to version report.
...
Add unit_damage and collateral_dam to the collateral damage matrix.
Move people_damage into matrix.
2006-02-05 17:37:58 +00:00
Ron Koenderink
d7dab3ddd1
(vers): Add the following the configuration values to the version report:
...
torpedo_damage, flakscale, people_damage, assault_penalty,
decay_per_etu, fallout_spread, fuel_mult, max_btus and max_idle.
2006-02-05 15:52:26 +00:00
Ron Koenderink
3db7e6201f
(powe_cost): Remove powe_cost and replace with a fixed cost of 10.
2006-02-04 19:36:51 +00:00
Ron Koenderink
62e57635ea
(vers): Add the following econfig values to version report:
...
MARK_DELAY, TRADE_DELAY, mission_mob_cost ,
money_ship, money_plane, money_land,
fort_max_interdiction_range, ship_max_interdiction_range,
land_max_interdiction_range, combat_mob and
sect_mob_neg_factor.
2006-02-02 13:20:14 +00:00
Ron Koenderink
1283f79db5
(lcarg, lcargo.t): Fix the header to match the info page.
...
Update the info page for the change to add civ, mil and uw.
(carg, cargo.t): Add the civ, mil and uw to cargo display.
Make the same as lcargo. Update the info page.
2006-02-01 23:52:42 +00:00
Ron Koenderink
c500f4adc3
(lcarg, ldump): Display civ, mil, and uw cargo for land units.
...
Remove full name from lcarg() to make room. Closes #889646 .
2006-01-31 17:32:33 +00:00
Ron Koenderink
7b9fdf8b95
(show_news, news, empfile[], page_headings[], page_headings_symbols[]):
...
Change page_headings[] to struct symbol and removed
page_headings_symbols[].
2006-01-30 22:26:48 +00:00
Ron Koenderink
aaea73a595
Update comment to indicate page_headings[] is done.
2006-01-29 19:29:10 +00:00