]> git.pond.sub.org Git - empserver/log
empserver
20 years ago(empth_t, empth_sem_t) [_EMPTH_WIN32]: Use incomplete types, not void for
Markus Armbruster [Tue, 17 Feb 2004 18:05:23 +0000 (18:05 +0000)]
(empth_t, empth_sem_t) [_EMPTH_WIN32]: Use incomplete types, not void for
abstract data types.

20 years agoSupply prototypes where possible. This uncovered type errors with
Markus Armbruster [Tue, 17 Feb 2004 17:59:30 +0000 (17:59 +0000)]
Supply prototypes where possible.  This uncovered type errors with
thread entrypoints:
(lwpSelect, shutdown_sequence): Parameters didn't match thread entry
point prototype.
(lwpEntryPoint): Arguments didn't match thread entry point prototype.

Change linkage of functions without prototype declaration to static
where possible.

Remove some superflous declarations, replace others by suitable
includes.

20 years agoWindows cleanup: include proper headers, remove unused variables, fix
Markus Armbruster [Mon, 16 Feb 2004 17:44:38 +0000 (17:44 +0000)]
Windows cleanup: include proper headers, remove unused variables, fix
type of signal handler.  Mostly from Ron Koenderink.

20 years ago(move_ground): Remove superflous parameter `mobility'. Callers
Markus Armbruster [Sun, 15 Feb 2004 21:27:41 +0000 (21:27 +0000)]
(move_ground): Remove superflous parameter `mobility'.  Callers
changed.  Edit for clarity.  No functional changes.

20 years ago(emp_sig_t): Pre-ISO C compatibility cruft. Just use void.
Markus Armbruster [Sun, 15 Feb 2004 21:00:27 +0000 (21:00 +0000)]
(emp_sig_t): Pre-ISO C compatibility cruft.  Just use void.

20 years ago(payo): Previous revision screwed up ally bonus.
Markus Armbruster [Sun, 15 Feb 2004 20:28:52 +0000 (20:28 +0000)]
(payo): Previous revision screwed up ally bonus.

20 years ago(upd_ship): Capability fish didn't work together with capability oil.
Markus Armbruster [Sun, 15 Feb 2004 19:30:03 +0000 (19:30 +0000)]
(upd_ship): Capability fish didn't work together with capability oil.

20 years ago(player_accept): Passed pointer to incorrect type to accept().
Markus Armbruster [Sun, 15 Feb 2004 19:26:52 +0000 (19:26 +0000)]
(player_accept): Passed pointer to incorrect type to accept().

20 years ago(clean): Fix for Windows.
Markus Armbruster [Sun, 15 Feb 2004 19:24:08 +0000 (19:24 +0000)]
(clean): Fix for Windows.

20 years agoFix markup of right quotes.
Markus Armbruster [Sun, 15 Feb 2004 19:23:42 +0000 (19:23 +0000)]
Fix markup of right quotes.

20 years agoFix generated HTML: proper !DOCTYPE, head, body, p.
Markus Armbruster [Sun, 15 Feb 2004 19:21:52 +0000 (19:21 +0000)]
Fix generated HTML: proper !DOCTYPE, head, body, p.
Fix request parsing, so empty requests are properly ignored.

20 years agoSpelling fixes.
Markus Armbruster [Sun, 15 Feb 2004 18:23:45 +0000 (18:23 +0000)]
Spelling fixes.

20 years agoOne TH request per file; remove second one.
Markus Armbruster [Sun, 15 Feb 2004 18:21:50 +0000 (18:21 +0000)]
One TH request per file; remove second one.

20 years agoClarification.
Markus Armbruster [Sun, 15 Feb 2004 18:20:37 +0000 (18:20 +0000)]
Clarification.

20 years agoUse plain double quote instead of \*Q and \*U in .EX, because it's
Markus Armbruster [Sun, 15 Feb 2004 18:20:13 +0000 (18:20 +0000)]
Use plain double quote instead of \*Q and \*U in .EX, because it's
typed text.

20 years ago(Q, U): Expanded into nothing; fix.
Markus Armbruster [Sun, 15 Feb 2004 18:15:48 +0000 (18:15 +0000)]
(Q, U): Expanded into nothing; fix.

20 years ago(lF): Unused, remove.
Markus Armbruster [Sun, 15 Feb 2004 18:12:45 +0000 (18:12 +0000)]
(lF): Unused, remove.

20 years agoDeviated from actual behavior (matched old behavior?). Fixed.
Markus Armbruster [Sun, 15 Feb 2004 17:38:23 +0000 (17:38 +0000)]
Deviated from actual behavior (matched old behavior?).  Fixed.

20 years agoempclient later than 2.8 support the Empire 4 protocol, too. Don't
Markus Armbruster [Sun, 15 Feb 2004 17:35:30 +0000 (17:35 +0000)]
empclient later than 2.8 support the Empire 4 protocol, too.  Don't
claim no other client supports it.

20 years agoFix title (second argument of TH).
Markus Armbruster [Sun, 15 Feb 2004 17:31:56 +0000 (17:31 +0000)]
Fix title (second argument of TH).

20 years agoStricter tests for requests.
Markus Armbruster [Sun, 15 Feb 2004 17:29:21 +0000 (17:29 +0000)]
Stricter tests for requests.
Request s3 doesn't exist, remove translation.

20 years agoFix indentation; $ in the middle of regexps confuses Emacs, so use \Z
Markus Armbruster [Sun, 15 Feb 2004 16:22:02 +0000 (16:22 +0000)]
Fix indentation; $ in the middle of regexps confuses Emacs, so use \Z
instead.  No functional changes.

20 years agoParse requests properly. Simpler, more correct and more robust.
Markus Armbruster [Sun, 15 Feb 2004 16:14:46 +0000 (16:14 +0000)]
Parse requests properly.  Simpler, more correct and more robust.

Fix translation of escapes.  Still a hack.

Fix Empire client prompt in translation of EX and SY.

20 years agoFix markup: bogus numerical arguments that were mapped to zero
Markus Armbruster [Sun, 15 Feb 2004 15:59:09 +0000 (15:59 +0000)]
Fix markup: bogus numerical arguments that were mapped to zero
silently (troff) or under protest (groff); table column width (also
fixed some .L arguments to match actual game output); spacing in
no-fill text; stray .FI, .in and .ce messing up indentation; stray .L;
misspelled request and escape names; escaping of control and escape
characters; properly ignore form-feed; argument quoting; extra
arguments to .NF.  Still broken: .L abused for headings, which
triggers many groff warnings about negative indentation.

20 years ago(nF, eF, bF, iF, lF, pF, cS, CS): Define to silence groff.
Markus Armbruster [Sun, 15 Feb 2004 13:22:39 +0000 (13:22 +0000)]
(nF, eF, bF, iF, lF, pF, cS, CS): Define to silence groff.

20 years agoConvert tabs before \" comments into spaces (troff pitfall).
Markus Armbruster [Sun, 15 Feb 2004 08:40:09 +0000 (08:40 +0000)]
Convert tabs before \" comments into spaces (troff pitfall).

20 years ago(SY, EX): Fix Empire client prompt.
Markus Armbruster [Sun, 15 Feb 2004 07:59:04 +0000 (07:59 +0000)]
(SY, EX): Fix Empire client prompt.

20 years ago(eF, EF): Font C doesn't exist, use R.
Markus Armbruster [Sun, 15 Feb 2004 07:58:02 +0000 (07:58 +0000)]
(eF, EF): Font C doesn't exist, use R.

20 years ago(N, EF): Define to R to silence groff.
Markus Armbruster [Sun, 15 Feb 2004 07:56:46 +0000 (07:56 +0000)]
(N, EF): Define to R to silence groff.

20 years ago4.2.13 last minute changes. v4.2.13
Markus Armbruster [Fri, 13 Feb 2004 22:20:17 +0000 (22:20 +0000)]
4.2.13 last minute changes.

20 years agoChange tarball names to empire$part-4.2.13.tar.gz. Tarballs now
Markus Armbruster [Fri, 13 Feb 2004 21:27:19 +0000 (21:27 +0000)]
Change tarball names to empire$part-4.2.13.tar.gz.  Tarballs now
unpack in a directory whose name matches the tarball name, as usual.

20 years agoSet archive members' owner, group and force sensible permissions.
Markus Armbruster [Fri, 13 Feb 2004 21:07:24 +0000 (21:07 +0000)]
Set archive members' owner, group and force sensible permissions.

20 years ago(lwpInitContext): Fix .function for current versions of as.
Markus Armbruster [Fri, 13 Feb 2004 21:00:06 +0000 (21:00 +0000)]
(lwpInitContext): Fix .function for current versions of as.

20 years ago(main, USERNAME): Change Windows user name from win-empcl2.8 to nobody
Markus Armbruster [Thu, 12 Feb 2004 16:50:48 +0000 (16:50 +0000)]
(main, USERNAME): Change Windows user name from win-empcl2.8 to nobody
to get rid of the version number.  Keeping it up-to-date by hand is
too much work, but leaving it at 2.8 would be confusing.

20 years ago(FREEBSDLFLAGS): Compile with symbols.
Markus Armbruster [Tue, 10 Feb 2004 19:45:41 +0000 (19:45 +0000)]
(FREEBSDLFLAGS): Compile with symbols.
(HPCFLAGS, HPUXCFLAGS, RTPCLFLAGS, SOLCFLAGS, AIXCFLAGS): NOFLOCK is
unused, don't define it.

20 years agoDon't fool around with obsolete strings.h, just include standard
Markus Armbruster [Tue, 10 Feb 2004 18:17:34 +0000 (18:17 +0000)]
Don't fool around with obsolete strings.h, just include standard
string.h.

20 years agoFix previous rev.
Markus Armbruster [Tue, 10 Feb 2004 18:11:44 +0000 (18:11 +0000)]
Fix previous rev.

20 years agoFix the previous revision.
Markus Armbruster [Tue, 10 Feb 2004 13:57:23 +0000 (13:57 +0000)]
Fix the previous revision.

20 years agoDocument production, feeding and plague for units.
Markus Armbruster [Tue, 10 Feb 2004 13:54:18 +0000 (13:54 +0000)]
Document production, feeding and plague for units.

20 years ago(move_ground): explore() used endsect without initialized in certain
Markus Armbruster [Tue, 10 Feb 2004 10:49:21 +0000 (10:49 +0000)]
(move_ground): explore() used endsect without initialized in certain
cases, e.g. `expl X,Y N X,Y'.  Other callers might have had similar
problems.  Fix: always assign to *END.  Thanks to Marc Olzheim for
help with debugging and fixing this.

20 years agoDo not regenerate mobility faster while it is negative.
Markus Armbruster [Tue, 10 Feb 2004 08:22:13 +0000 (08:22 +0000)]
Do not regenerate mobility faster while it is negative.

20 years agoFix markup.
Markus Armbruster [Tue, 10 Feb 2004 08:17:28 +0000 (08:17 +0000)]
Fix markup.

20 years agoFix .NA and .TH.
Markus Armbruster [Tue, 10 Feb 2004 08:14:34 +0000 (08:14 +0000)]
Fix .NA and .TH.

20 years agoCreate info.text.tar.gz and info.html.tar.gz.
Markus Armbruster [Sat, 7 Feb 2004 02:23:00 +0000 (02:23 +0000)]
Create info.text.tar.gz and info.html.tar.gz.

20 years ago(iom, fdmax, newoutput): Serve no purpose since previous rev., remove
Markus Armbruster [Sat, 7 Feb 2004 02:01:47 +0000 (02:01 +0000)]
(iom, fdmax, newoutput): Serve no purpose since previous rev., remove
along with code to maintain them.  This removes the last uses of
io_mask.c io_mask.h; remove them.

20 years ago(install, ntinstall): Create the data directory.
Markus Armbruster [Sat, 7 Feb 2004 01:49:35 +0000 (01:49 +0000)]
(install, ntinstall): Create the data directory.
(ntinstall): Remove erroneous and superflous mkdir bin.

20 years agoUpdate for 4.2.13.
Markus Armbruster [Sat, 7 Feb 2004 01:22:53 +0000 (01:22 +0000)]
Update for 4.2.13.

20 years agoRemove outdated version information for now. Keeping it up-to-date by
Markus Armbruster [Sat, 7 Feb 2004 01:19:00 +0000 (01:19 +0000)]
Remove outdated version information for now.  Keeping it up-to-date by
hand is too much work; should be automated.

20 years agoNew make target dist, to run new src/scripts/mkdist.
Markus Armbruster [Sat, 7 Feb 2004 01:09:22 +0000 (01:09 +0000)]
New make target dist, to run new src/scripts/mkdist.

20 years agoCreating make include files with make doesn't work with many makes out
Markus Armbruster [Sat, 7 Feb 2004 00:54:35 +0000 (00:54 +0000)]
Creating make include files with make doesn't work with many makes out
there.  Back out for 4.2.13.  You have to create the make include
files by hand if they don't exist.  That's the case for freshly
checked out trees.

20 years ago(show, show_item): No new `show' features without matching machine
Markus Armbruster [Sat, 7 Feb 2004 00:27:45 +0000 (00:27 +0000)]
(show, show_item): No new `show' features without matching machine
readable dumps.  Back out `show item' for 4.2.13.

20 years ago(nuk_add): Failed to call makenotlost() when reusing a `hole' in the
Markus Armbruster [Fri, 6 Feb 2004 23:52:11 +0000 (23:52 +0000)]
(nuk_add): Failed to call makenotlost() when reusing a `hole' in the
nuke file.

20 years ago(RESOLVE_IPADDRESS): gethostbyaddr() uses a lot of stack space on some
Markus Armbruster [Fri, 6 Feb 2004 23:42:36 +0000 (23:42 +0000)]
(RESOLVE_IPADDRESS): gethostbyaddr() uses a lot of stack space on some
versions of GNU libc, which can lead to nasty heap smashes (observed
with 2.2.93).  Don't define RESOLVE_IPADDRESS for now, until we
readjust thread stack sizes.

20 years agoDocument help command. Closes #804550.
Markus Armbruster [Fri, 6 Feb 2004 23:39:59 +0000 (23:39 +0000)]
Document help command.  Closes #804550.

20 years agoUseless copy of an old version of Makefile, remove.
Markus Armbruster [Fri, 6 Feb 2004 23:34:21 +0000 (23:34 +0000)]
Useless copy of an old version of Makefile, remove.

20 years agoWhitespace fix.
Markus Armbruster [Fri, 6 Feb 2004 23:32:15 +0000 (23:32 +0000)]
Whitespace fix.

20 years agoNo need to pass -nsob, it's implied by -kr.
Markus Armbruster [Fri, 6 Feb 2004 23:30:47 +0000 (23:30 +0000)]
No need to pass -nsob, it's implied by -kr.

20 years agoIndentation fix.
Markus Armbruster [Fri, 6 Feb 2004 23:26:25 +0000 (23:26 +0000)]
Indentation fix.

20 years ago(fly): Fix confusing line break.
Markus Armbruster [Fri, 6 Feb 2004 23:17:50 +0000 (23:17 +0000)]
(fly): Fix confusing line break.

20 years ago(doland): Fix output (run-away replace?).
Markus Armbruster [Fri, 6 Feb 2004 23:15:07 +0000 (23:15 +0000)]
(doland): Fix output (run-away replace?).

20 years agoFix previous rev.
Markus Armbruster [Fri, 6 Feb 2004 23:07:18 +0000 (23:07 +0000)]
Fix previous rev.

20 years ago(ca): Unused, remove.
Markus Armbruster [Fri, 6 Feb 2004 23:02:05 +0000 (23:02 +0000)]
(ca): Unused, remove.

20 years ago(LINUXPTHCFLAGS): Really don't define __USE_BSD_SIGNAL.
Markus Armbruster [Fri, 6 Feb 2004 22:57:31 +0000 (22:57 +0000)]
(LINUXPTHCFLAGS): Really don't define __USE_BSD_SIGNAL.

20 years ago(LINUXCFLAGS, LINUXPTHCFLAGS): Don't define lint and __USE_BSD_SIGNAL.
Markus Armbruster [Fri, 6 Feb 2004 22:53:41 +0000 (22:53 +0000)]
(LINUXCFLAGS, LINUXPTHCFLAGS): Don't define lint and __USE_BSD_SIGNAL.
The latter can't be found anywhere in source or system headers.

20 years ago(OSXCFLAGS): Don't switch gcc to cruft mode.
Markus Armbruster [Fri, 6 Feb 2004 22:43:35 +0000 (22:43 +0000)]
(OSXCFLAGS): Don't switch gcc to cruft mode.
(OSXLFLAGS): Don't sweep undefined references under the carpet; link
with the right libraries instead.
(LINUXCFLAGS, LINUXPTHCFLAGS): Compile with symbols.

20 years agoCorrect info on mining harbors. Closes #827442.
Markus Armbruster [Fri, 6 Feb 2004 22:31:05 +0000 (22:31 +0000)]
Correct info on mining harbors.  Closes #827442.

20 years agoFix BTU cost. Closes #782956.
Markus Armbruster [Fri, 6 Feb 2004 22:22:51 +0000 (22:22 +0000)]
Fix BTU cost.  Closes #782956.

20 years agoDelete lie about give without arguments. Closes #804709.
Markus Armbruster [Fri, 6 Feb 2004 22:14:47 +0000 (22:14 +0000)]
Delete lie about give without arguments.  Closes #804709.

20 years agoDocument effect of BLITZ. Delete lies about the total number of
Markus Armbruster [Fri, 6 Feb 2004 22:11:13 +0000 (22:11 +0000)]
Document effect of BLITZ.  Delete lies about the total number of
players display.  Closes #809867.

20 years ago.SA starts a paragraph.
Markus Armbruster [Fri, 6 Feb 2004 21:30:08 +0000 (21:30 +0000)]
.SA starts a paragraph.

20 years agoSpelling fix.
Markus Armbruster [Fri, 6 Feb 2004 21:28:55 +0000 (21:28 +0000)]
Spelling fix.

20 years agoProperly escape `\'. Fix info on sector capabilities. Closes
Markus Armbruster [Fri, 6 Feb 2004 21:27:15 +0000 (21:27 +0000)]
Properly escape `\'.  Fix info on sector capabilities.  Closes
#861874.

20 years agoFix off-by-one in arguments of substr() that ate first letter of .SY,
Markus Armbruster [Fri, 6 Feb 2004 19:31:41 +0000 (19:31 +0000)]
Fix off-by-one in arguments of substr() that ate first letter of .SY,
.EX and .L text.

20 years agoGarbage collection to side-step sparse file descriptor problem.
Markus Armbruster [Fri, 6 Feb 2004 12:35:51 +0000 (12:35 +0000)]
Garbage collection to side-step sparse file descriptor problem.
(io_select, io_flush, io_iopfromfd): Unused, remove.
(io_open): Allow more than one open for the same file descriptor.
The check is the last remaining use of io_list[], and it's
unimportant.
(io_list, niop, io_init): io_list[] no longer serves any purpose,
remove.  Sparse allocation of file descriptors (deplorable misfeature
of Winsock, at least some versions) is no longer a problem.
(getfdtablesize): Unused, remove.  Was broken for Windows anyway.

20 years ago(io_open, io_iopfromfd): Properly check argument FD to protect
Markus Armbruster [Fri, 6 Feb 2004 12:12:58 +0000 (12:12 +0000)]
(io_open, io_iopfromfd): Properly check argument FD to protect
io_list[] indexing.
(niop, io_init): Store length of io_list[] in new niop.
(player_accept): Checking the socket file descriptor here is now
redundant.  Remove.

20 years ago(msl_hit): Tell victim coordinates of incoming missile. Closes
Markus Armbruster [Thu, 5 Feb 2004 16:29:32 +0000 (16:29 +0000)]
(msl_hit): Tell victim coordinates of incoming missile.  Closes
#799873.  From Marc Olzheim.

20 years ago(rpt): Fix rpt[N_NUKE_SSTOP]; not every sub-launched missile is
Markus Armbruster [Thu, 5 Feb 2004 16:15:13 +0000 (16:15 +0000)]
(rpt): Fix rpt[N_NUKE_SSTOP]; not every sub-launched missile is
nuclear.  Closes #797330.  From Marc Olzheim.

20 years ago(landmine): Add a missing call of putland(). Closes #682570. Don't
Markus Armbruster [Thu, 5 Feb 2004 16:03:59 +0000 (16:03 +0000)]
(landmine): Add a missing call of putland().  Closes #682570.  Don't
complain about running out of things when the job actually completed
fine.  From Marc Olzheim.

20 years ago(player_coms): Fix flag argument of map commands in c_form. From Marc
Markus Armbruster [Tue, 3 Feb 2004 17:27:51 +0000 (17:27 +0000)]
(player_coms): Fix flag argument of map commands in c_form.  From Marc
Olzheim.

20 years ago(map): Reject flags `t' and `r' unless it's a bmap command. Both used
Markus Armbruster [Tue, 3 Feb 2004 17:24:05 +0000 (17:24 +0000)]
(map): Reject flags `t' and `r' unless it's a bmap command.  Both used
to change the map command into the corresponding bmap command, which
was undocumented and didn't make sense.  From Marc Olzheim.

20 years ago(wripglob): Don't emit unnecessary includes.
Markus Armbruster [Tue, 3 Feb 2004 17:16:06 +0000 (17:16 +0000)]
(wripglob): Don't emit unnecessary includes.

20 years ago(wrgamesdef): Generate EMPDIR instead of EMPPATH(). Change callers of
Markus Armbruster [Sat, 31 Jan 2004 19:33:00 +0000 (19:33 +0000)]
(wrgamesdef): Generate EMPDIR instead of EMPPATH().  Change callers of
EMPPATH() to use EMPDIR.  This avoids triggering MSVC bugs, and drops
support for traditional, pre-ISO cpp.  Closes #753935.
(gamedir, lostfil, playerbin, updatebin): Unused, remove.

20 years ago(payo, scuttle_tradeship, sdump): Disclose construction site only to
Markus Armbruster [Sat, 31 Jan 2004 10:03:49 +0000 (10:03 +0000)]
(payo, scuttle_tradeship, sdump): Disclose construction site only to
original owner and deities.  Closes #815197.

20 years ago(KILL): Off by one in fnlist[]. This is why client option -k didn't
Markus Armbruster [Sat, 31 Jan 2004 09:42:34 +0000 (09:42 +0000)]
(KILL): Off by one in fnlist[].  This is why client option -k didn't
work.
(WAT, GKILL): Unused, remove.

20 years agoRemove outdated version information for now. Keeping it up-to-date by
Markus Armbruster [Fri, 30 Jan 2004 21:49:54 +0000 (21:49 +0000)]
Remove outdated version information for now.  Keeping it up-to-date by
hand is too much work; should be automated.

20 years agoProtect space between option and option arg, so that typesetting doesn't
Markus Armbruster [Fri, 30 Jan 2004 21:11:11 +0000 (21:11 +0000)]
Protect space between option and option arg, so that typesetting doesn't
swallow it.

20 years ago(do_mob_land): Do not regenerate mobility faster while it is negative.
Markus Armbruster [Fri, 30 Jan 2004 16:20:45 +0000 (16:20 +0000)]
(do_mob_land): Do not regenerate mobility faster while it is negative.

20 years agoAdd missing pages on sbmap, pbmap, lbmap. Document flags * and h
Markus Armbruster [Fri, 30 Jan 2004 15:38:48 +0000 (15:38 +0000)]
Add missing pages on sbmap, pbmap, lbmap.  Document flags * and h
where that was missing.  Make all pages fully consistent.  Form Marc
Olzheim.

20 years ago(file_lock, file_unlock, ef_lock, ef_unlock, commlock, communlock):
Markus Armbruster [Thu, 29 Jan 2004 17:07:26 +0000 (17:07 +0000)]
(file_lock, file_unlock, ef_lock, ef_unlock, commlock, communlock):
File locking doesn't make sense, must be a leftover from the distant
past.  Remove.  Callers changed.

20 years ago(fort): Refuse to fortify land units embarked on land units. Properly
Markus Armbruster [Thu, 29 Jan 2004 13:36:25 +0000 (13:36 +0000)]
(fort): Refuse to fortify land units embarked on land units.  Properly
report failure to fortify.

20 years ago(lnd_fortify): Do not fortify units embarked on ships or land units.
Markus Armbruster [Thu, 29 Jan 2004 13:34:15 +0000 (13:34 +0000)]
(lnd_fortify): Do not fortify units embarked on ships or land units.

20 years ago(take_move_in_mob): Automatic fortification on excess mobility may
Markus Armbruster [Thu, 29 Jan 2004 11:55:26 +0000 (11:55 +0000)]
(take_move_in_mob): Automatic fortification on excess mobility may
fortify units while they are `at the prompt'.  That's okay.  But
action that consumes mobility must zap the fortification again.

20 years ago(player_coms): Fix c_form for upgrade. From Marc Olzheim.
Markus Armbruster [Wed, 28 Jan 2004 22:12:27 +0000 (22:12 +0000)]
(player_coms): Fix c_form for upgrade.  From Marc Olzheim.

20 years agoUse strict & warnings. Fix several minor bugs uncovered by it.
Markus Armbruster [Wed, 28 Jan 2004 21:21:48 +0000 (21:21 +0000)]
Use strict & warnings.  Fix several minor bugs uncovered by it.

Semantics of assigning to $[ changed in Perl 5, and its use is `highly
discouraged'.  Programs obviously assumed $[ affects all arrays, but
it doesn't in Perl 5.  If these programs ever worked, then certainly
not with Perl 5.  Remove the assignments and shift indexes
accordingly.

20 years agoDocument automatic fortification. Clarify engineer bonus.
Markus Armbruster [Wed, 28 Jan 2004 21:14:50 +0000 (21:14 +0000)]
Document automatic fortification.  Clarify engineer bonus.

20 years ago(guerrilla): Give wandering che inexact, somewhat randomized
Markus Armbruster [Wed, 28 Jan 2004 19:30:15 +0000 (19:30 +0000)]
(guerrilla): Give wandering che inexact, somewhat randomized
information on military.  Closes #750533.  Why?  Wandering che pick a
sector with minimal military from the adjacent sectors that can get
che.  Ties are broken in favour of the first sector examined.  Since
sectors are examined in the order given by by diroff[], che prefer
directions with low index in diroff[].  This tends to channel che
towards the northeast.  But the change makes ties very unlikely.

20 years ago(lnd_sweep, lnd_mar_one_sector): Automatic fortification on excess
Markus Armbruster [Wed, 28 Jan 2004 19:02:29 +0000 (19:02 +0000)]
(lnd_sweep, lnd_mar_one_sector): Automatic fortification on excess
mobility may fortify units while they are `at the march prompt'.
That's okay.  But action that consumes mobility must zap the
fortification again.

20 years ago(do_mob_land): Use excess mobility to fortify. Note that units
Markus Armbruster [Wed, 28 Jan 2004 17:00:29 +0000 (17:00 +0000)]
(do_mob_land): Use excess mobility to fortify.  Note that units
requiring fuel to gain mobility never get excess mobility.  Adapted
patch from from Marc Olzheim.  Closes #725457.

20 years ago(is_engineer, has_helpful_engineer): Rename. Require allied
Markus Armbruster [Wed, 28 Jan 2004 10:46:57 +0000 (10:46 +0000)]
(is_engineer, has_helpful_engineer): Rename.  Require allied
engineers.  This affecs command `fortify'.

20 years ago(lnd_fortify): New, factored out of fort().
Markus Armbruster [Wed, 28 Jan 2004 09:31:22 +0000 (09:31 +0000)]
(lnd_fortify): New, factored out of fort().
(fort): Use it; no functional changes.
(is_engineer): Move to logical place, external linkage.