Commit graph

1189 commits

Author SHA1 Message Date
Marc Olzheim
d405e17c42 Update for src/util/fairland.c:1.23 and src/server/main.c:1.62 2005-05-31 09:02:33 +00:00
Ron Koenderink
2f36c83c58 Spelling fixes. 2005-05-31 03:31:58 +00:00
3c58b1ae83 (program_name, help): New.
(main): New option -h.  Terminate unsuccessfully on invalid option.
(usage, parse_args): Factored usage() out of parse_args().
(parse_args): More useful diagnostics.
2005-05-30 15:15:33 +00:00
63769b0342 (prod_plane): Remove redundant initialization. 2005-05-30 15:07:34 +00:00
c8d49deb4c (sarg_type): Simplify, no functional change. 2005-05-30 15:06:31 +00:00
1ec5767d5f Doc & formatting fixes. 2005-05-30 15:03:24 +00:00
18ee9a2f35 (flee, army, wing): Print how many new members were added.
Previously, it printed how many were selected, which can include old
members of the group.

(flee, army): The rather obscure feature to assign the fleet's /
army's retreat orders to members was broken.  It ignored ownership,
and thus could copy some other player's retreat orders.  Abusable.
Copying the first member's retreat orders is less than useful, in
particular for group ~.  The code now chooses the first one in the
same sector with RET_GROUP set.  RET_GROUP is never set for group ~.
2005-05-30 14:56:02 +00:00
33ae33b556 Fix .SA. 2005-05-30 07:35:15 +00:00
27a9f772f5 Cosmetic change of markup. 2005-05-30 06:15:21 +00:00
0f36b73975 Fix the previous revision. 2005-05-30 06:14:22 +00:00
03c2f9e302 Updated from man/emp_client.6 rev. 1.9. 2005-05-30 05:18:33 +00:00
Ron Koenderink
a777b13c01 Add notes for Client Implementors. 2005-05-29 22:21:34 +00:00
Ron Koenderink
05a4eae605 (output,screen): In ASCII mode, remove standout bit if the client
does not support standout mode.
In UTF8 mode, remove SO/SI characters if the client does not support
standout mode.
2005-05-29 16:22:14 +00:00
Ron Koenderink
cee93406f9 Add the See Also "Moving" to the commands described
in the info file.
2005-05-29 15:46:13 +00:00
Ron Koenderink
8531589c66 Correct the number of commands in the described in the text. 2005-05-29 15:40:34 +00:00
Ron Koenderink
a52b14681c Changed the name of Attack and Move concept files and
a number of Subjects files to prevent name
conflicts where the only the case is difference.
Attack -> Attacking
Moving -> Transportation
Move -> Moving
Market -> Commerce
Nation -> Nations
Production -> Producing
Update -> Updating
2005-05-29 14:17:07 +00:00
326ac671ba (EFF_OWNER): The assertion that EFF_OWNER implies ef_read() sets
player->owner is no longer used.  Use it to indicate that owner can be
accessed through struct genitem, similar to EFF_XY and EFF_GROUP.
(xdump): Fix ownership checking.  Old version worked only when
nxtitem() set player->owner.

(empfile): Set EFF_OWNER for EF_LOST.  This fixes `xdump lost'
disclosing other countries' losses.
(loststr): Document implications of EFF_OWNER.

(empfile): Set EFF_OWNER for EF_NATION.
(natstr): Rearrange members for EFF_OWNER, document.
(nat_ca): Unused so far.  Clean it up, add most missing selectors.
(fileinit): Use it.  This implements `xdump nation'.

(fileinit): Simplify setting map file size.
2005-05-29 14:14:33 +00:00
b111abc2c5 (nxtitem): Skipped unowned sectors (could not occur), ships, planes,
land units and nukes for selection type NS_LIST.  Thus, unowned items
explicitly selected by item number are skipped, while the same items
selected implicitely by group, area or whatever are not.  This makes
no sense.  Some callers break the nstr_item abstraction to prevent the
skipping, so they get all items regardless of how they were selected.
All other callers filter out unowned items.  This skipping misfeature
dates back to the very oldest known versions of Empire.  Remove it.
Also remove skipping prevention hacks from callers.

(tend_nxtitem): Now identical to nxtitem(), except it lacks some extra
normalization of item coordinates, which should have no effect.
Replace by nxtitem().
2005-05-29 13:15:56 +00:00
15448392f3 (findlost): Static linkage. 2005-05-28 16:04:08 +00:00
ec086428e5 (LIBS, NTLIBS): Remove libsubs.a. 2005-05-28 16:02:46 +00:00
61cca23d29 (main): Fix checking of ef_open()'s value. Fixes program exit status
when files can't be opened.

(logerror): The version from libcommon.a does the right thing since
log.c rev. 1.17.  Use it, remove local version.

(log_last_commands): No longer referenced by library code, remove.
2005-05-28 15:57:17 +00:00
a127869da2 (ef_write): Don't call log_last_commands() directly, use oops(). If
it's worth logging commands, then it's worth dumping core.
2005-05-28 15:52:29 +00:00
980c3ca8c6 (debug): Move to log.c, so other programs don't have to define debug
themselves just to use logerror().
2005-05-28 15:34:21 +00:00
259bbe604d Clean up the previous revision; no functional changes. 2005-05-28 08:46:33 +00:00
Marc Olzheim
1e02375f7b Update patch for some minor offset changes. 2005-05-28 08:44:57 +00:00
Marc Olzheim
b3dc1375ba Update patch for pr.c:1.12 2005-05-28 08:44:09 +00:00
ce6c039519 Remove some redundant casts. 2005-05-28 08:37:52 +00:00
e2fe05be18 Clean up the previous revision. No functional changes. 2005-05-28 08:25:28 +00:00
9b28594b5b (nxtitemp): Remove last parameter. Non-zero argument doesn't make
sense and is never passed.  Callers changed.
2005-05-28 08:22:42 +00:00
e27724fbc9 Document implications of EFF_OWNER. 2005-05-28 08:20:07 +00:00
4a67b91f8a Document struct equivalence hack and implications of EFF_XY and
EFF_GROUP.
2005-05-28 08:03:31 +00:00
7ef7aa83b8 Client UTF-8 support.
(login): New parameter utf8.  If set, request option utf-8 from
server.
(expect, recvline): Split recvline() out of expect().  Replace or
remove some unhelpful diagnostics.
(eight_bit_clean): New.
(screen): If eight_bit_clean is set, highlighting is switched with
SO/SI.  Else characters with MSB set are highlighted.
(main): New option -u to request UTF-8 and set eight_bit_clean.
2005-05-27 17:00:25 +00:00
baf416652a Login options.
(player): New member flags.
(PF_UTF8, NF_UTF8): New PF_UTF8 replaces NF_UTF8.  Users changed.
(options_cmd): New.
(login_coms): New command `options'.
(toggle): Revert to the previous rev.
2005-05-27 16:31:19 +00:00
976cdfbf9e (coun_cmd): Fix return value when country doesn't exist. No
functional change, as caller treats old and fixed value the same.
2005-05-27 16:24:55 +00:00
Ron Koenderink
65cbb148b1 (uprmtrd): Remove the unsigned char cast for cp, not necessary. 2005-05-27 12:16:57 +00:00
801d32783d (sendcmd): Change argument cmd to string. Callers changed.
(fnlist, fn, USER, COUN, QUIT, PASS, PLAY, LIST, CMD, CTLD, KILL):
Unused, remove.
2005-05-26 13:18:58 +00:00
44b11ab597 (getele): ~p printed user text as normal text. 2005-05-26 12:50:08 +00:00
Ron Koenderink
2cc44bb182 Support UTF-8 encoded Unicode for user communications.
(NF_UTF8, togg): New client flag.
(flash, wall): User text input filtering.
(parse, prmptrd): Normal text input filtering.
(uprmptrd, ugetstring): New, to get user text.
(getele, flash, wall): Use them.
(getele): No need to filter out funny characters; input filtering
takes care of them.
(sendmessage, ufindbreak): Work on user text.
(uprnf): New, to print user text.
(rea, gamedown, show_motd): Use it.
(prnf): Unused, remove.
(pr, upr_player): Normal text output filtering (with highlighting).
(pr_flash): User text output filtering.
2005-05-26 01:58:48 +00:00
2508364945 (lnd_support): New parameter defending, to report defensive support in
the news correctly, like dd() and sd() do.  Reported by Doug Wescott.
2005-05-24 18:38:36 +00:00
Ron Koenderink
82ac1a9ddc Initial Release. 2005-05-22 00:52:43 +00:00
Marc Olzheim
320db9df30 Update for Make.sysdefs:1.9: Get rid of -DPOSIXSIGNALS. 2005-05-16 23:45:39 +00:00
Marc Olzheim
d49176a1ec Use NULL instead of 0 where appropriate. No functional changes. 2005-05-16 22:24:21 +00:00
d1163463b6 (nstr_comp): Interpret identifiers as strings only when the
other operand is a string-value selector.
(nstr_comp_val): Don't interpret identifiers as strings.
(nstr_resolve_id): New parameter string_ok.
2005-05-14 18:07:48 +00:00
Ron Koenderink
dcd0794104 (build_bridge,build_tower,retreat_ship1): Mark "X" on sector
where mines were found when retreating.  Remove "X" when the
bridge span or tower is built.  Closes #1149809.
The bmap is now updated when the bridge span or tower is built.
A bulletin was added for when mines were swept when
retreating.
2005-05-08 18:39:09 +00:00
250fc7d354 (ship_ca): Selector mobquota clashes with mobil, rename to mquota.
(land_ca): There are two selectors rad: radioactive materials and
reaction range limit.  Rename the latter to rmax.
2005-05-08 15:25:11 +00:00
Ron Koenderink
276a99841f (MINES_MAX): Change to 32767. MINES_MAX was not adjusted from 65535
when sct_mines was changed from unsigned short to short in rev. 1.15.
2005-05-07 19:49:04 +00:00
647783f652 (servercmd): Parsed BTUs into nmin and minutes into nbtu. Fix. No
functional change.
2005-05-07 08:47:32 +00:00
Ron Koenderink
921fba6532 (main,install_service) [_WIN32]: Move the construction of full path names
for program file and econfig file for installing a service to main()
instead of install_service(). This is because current directory
information is lost because of the use of chdir() to move the current
directory to the datadir.  This change also fixed the setting of a
relative directory for the econfig file.  The service starts in an
arbitrary directory so a relative path can not used by the service.
2005-05-03 00:06:10 +00:00
Ron Koenderink
9f27f5b02a (ship_grow_scale, plane_grow_scale, land_grow_scale): Change from int
to float.  This allows more control of the max. efficiency gain, and
makes it similiar to ship_mob_scale etc.  Closes #1025600.
2005-04-05 03:00:35 +00:00
44d59b5d17 (prod): All sectors produce when efficiency >=60%, not only enlistment
centers.
2005-04-04 18:54:14 +00:00