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
beae3ea770
(getele): Zero-terminate empty telegrams. Returned telegram was
...
broken in rev. 1.9. ~p never worked.
2006-03-25 20:11:55 +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
94d0c81e55
Define feature test macro required for PTHREAD_STACK_MIN on some
...
systems, e.g. Solaris.
2006-03-25 10:15:13 +00:00
9055031b7f
Fix the previous revision.
2006-03-25 09:08:58 +00:00
ba11aaaa36
(empth_create): LWP yields, and it's the reference implementation.
...
Document and fix the others.
2006-03-25 07:49:37 +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
3252f8a907
(dirchar, neighsects, login_coms, lookup_list, g_distptrs, level_easy)
...
(level_log, levelnames): Internal linkage.
2006-03-23 20:32:29 +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
5c423d1e42
(do_mob_ship, do_mob_land): Remove superflous casts.
...
(do_mob_land): Remove superflous check for excess mobility.
2006-03-23 07:46:26 +00:00
5cdbd2ff96
Previous revision broke canal navigation, fix.
2006-03-23 06:54:56 +00:00
ae6acc09ce
(CFLAGS, CPPFLAGS): POSIX make has only CFLAGS. Fold CPPFLAGS into
...
CFLAGS. Use CFLAGS when linking, to match POSIX make implicit rule.
2006-03-18 17:46:32 +00:00
62b041efb5
Search for terminal stuff in -lcurses as well.
2006-03-18 16:46:58 +00:00
a552ba60e2
(may_play): More helpful diagnosis and log.
2006-03-09 22:04:17 +00:00
435183f74d
(privip): Lacked the IPv4 mapped IPv6 address for localhost.
2006-03-09 21:51:27 +00:00
b0c9691e64
Doc fix.
2006-03-08 20:16:18 +00:00
baf7df56be
*** empty log message ***
2006-03-08 20:10:43 +00:00
Ron Koenderink
9e3825ee46
(termio) [_WIN32]: Change remaining "n"s to "records" for the
...
WIN32 ReadConsole(). Fixes broken exec command.
Broken in Rev 1.17.
2006-03-08 18:45:56 +00:00
c52a9a2822
New doc/xdump.
2006-03-06 18:27:37 +00:00
6fc677e720
Doc fix.
2006-03-06 18:24:39 +00:00
211a56489b
(ef_open): Zero cache size (empty EFF_MEM file) can lead to null cache
...
on some systems, which confuses assertions. Force non-zero size.
2006-03-06 18:23:41 +00:00
0605e10c50
Check for -lws2_32 properly. The old code relied on $host_os, which
...
wasn't defined.
2006-03-04 06:55:12 +00:00
3731466557
Doc update.
2006-02-28 21:19:21 +00:00
c060977df0
(player_coms): Update xdump's c_form to current syntax.
2006-02-28 20:09:54 +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
73149fb151
Boilerplate file comment.
2006-02-24 21:23:46 +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
198fad473e
Rework obsolete comment on hours file, an move it where it belongs:
...
next to variable definitions and into econfig doc strings.
2006-02-24 18:33:58 +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
38fdf1ba43
(config_tables, custom_tables, read_config_tables, read_custom_tables)
...
(read_config_table_file, read_custom_table_file): Rename.
2006-02-23 18:31:23 +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
5537d902b7
(player_main): Don't end session silently when init_nats() fails.
2006-02-23 07:40:11 +00:00
08501fa9c3
(init_nats): Use CANT_HAPPEN() where appropriate.
2006-02-23 07:38:38 +00:00