Commit graph

4049 commits

Author SHA1 Message Date
e446bfd904 (empth_t, empth_sem_t) [_EMPTH_WIN32]: Use incomplete types, not void for
abstract data types.
2004-02-17 18:05:23 +00:00
237baffca9 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.
2004-02-17 17:59:30 +00:00
7dbb87b0e0 Windows cleanup: include proper headers, remove unused variables, fix
type of signal handler.  Mostly from Ron Koenderink.
2004-02-16 17:44:38 +00:00
cc5d78c2f0 (move_ground): Remove superflous parameter `mobility'. Callers
changed.  Edit for clarity.  No functional changes.
2004-02-15 21:27:41 +00:00
4fa84b5cb1 (emp_sig_t): Pre-ISO C compatibility cruft. Just use void. 2004-02-15 21:00:27 +00:00
b218799e15 (payo): Previous revision screwed up ally bonus. 2004-02-15 20:28:52 +00:00
27efd2c266 (upd_ship): Capability fish didn't work together with capability oil. 2004-02-15 19:30:03 +00:00
42a43e1461 (player_accept): Passed pointer to incorrect type to accept(). 2004-02-15 19:26:52 +00:00
9a9820d77a (clean): Fix for Windows. 2004-02-15 19:24:08 +00:00
995a22dd91 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.
2004-02-13 21:27:19 +00:00
9020da90b5 Set archive members' owner, group and force sensible permissions. 2004-02-13 21:07:24 +00:00
94b86ae057 (lwpInitContext): Fix .function for current versions of as. 2004-02-13 21:00:06 +00:00
9cfb72ab45 (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.
2004-02-12 16:50:48 +00:00
51c3215cf8 Fix previous rev. 2004-02-10 18:11:44 +00:00
07ee157e2a (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.
2004-02-10 10:49:21 +00:00
a3c7146c91 Create info.text.tar.gz and info.html.tar.gz. 2004-02-07 02:23:00 +00:00
ffcf6bff0f (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.
2004-02-07 02:01:47 +00:00
99ec0e41d1 Remove outdated version information for now. Keeping it up-to-date by
hand is too much work; should be automated.
2004-02-07 01:19:00 +00:00
f23d2846f9 New make target dist, to run new src/scripts/mkdist. 2004-02-07 01:09:22 +00:00
1669add706 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.
2004-02-07 00:54:35 +00:00
d8983db308 (show, show_item): No new `show' features without matching machine
readable dumps.  Back out `show item' for 4.2.13.
2004-02-07 00:27:45 +00:00
49a4d5065c (nuk_add): Failed to call makenotlost() when reusing a `hole' in the
nuke file.
2004-02-06 23:52:11 +00:00
abe89a8596 Useless copy of an old version of Makefile, remove. 2004-02-06 23:34:21 +00:00
f4173aaa47 Whitespace fix. 2004-02-06 23:32:15 +00:00
ef042a754d No need to pass -nsob, it's implied by -kr. 2004-02-06 23:30:47 +00:00
0696bb190d Indentation fix. 2004-02-06 23:26:25 +00:00
a3cd473589 (fly): Fix confusing line break. 2004-02-06 23:17:50 +00:00
85b4125393 (doland): Fix output (run-away replace?). 2004-02-06 23:15:07 +00:00
875d72a00f 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.
2004-02-06 12:35:51 +00:00
52cb1f8c55 (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.
2004-02-06 12:12:58 +00:00
0655744bf7 (msl_hit): Tell victim coordinates of incoming missile. Closes
#799873.  From Marc Olzheim.
2004-02-05 16:29:32 +00:00
2b00422732 (rpt): Fix rpt[N_NUKE_SSTOP]; not every sub-launched missile is
nuclear.  Closes #797330.  From Marc Olzheim.
2004-02-05 16:15:13 +00:00
b36eaf98d3 (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.
2004-02-05 16:03:59 +00:00
aba72ef569 (player_coms): Fix flag argument of map commands in c_form. From Marc
Olzheim.
2004-02-03 17:27:51 +00:00
3bf6e9ca05 (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.
2004-02-03 17:24:05 +00:00
be40df6d7b (wripglob): Don't emit unnecessary includes. 2004-02-03 17:16:06 +00:00
cfc7e113ef (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.
2004-01-31 19:33:00 +00:00
a99bc3be73 (payo, scuttle_tradeship, sdump): Disclose construction site only to
original owner and deities.  Closes #815197.
2004-01-31 10:03:49 +00:00
c2ab6de7e7 (KILL): Off by one in fnlist[]. This is why client option -k didn't
work.
(WAT, GKILL): Unused, remove.
2004-01-31 09:42:34 +00:00
eb64deaf1d (do_mob_land): Do not regenerate mobility faster while it is negative. 2004-01-30 16:20:45 +00:00
beba530119 (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.
2004-01-29 17:07:26 +00:00
daad9ed79c (fort): Refuse to fortify land units embarked on land units. Properly
report failure to fortify.
2004-01-29 13:36:25 +00:00
4b321add52 (lnd_fortify): Do not fortify units embarked on ships or land units. 2004-01-29 13:34:15 +00:00
a52a09be1f (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.
2004-01-29 11:55:26 +00:00
cff4c77bf9 (player_coms): Fix c_form for upgrade. From Marc Olzheim. 2004-01-28 22:12:27 +00:00
40b35c4f30 (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.
2004-01-28 19:30:15 +00:00
dc9a19b324 (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.
2004-01-28 19:02:29 +00:00
bf50c6e851 (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.
2004-01-28 17:00:29 +00:00
c4ae0d89eb (is_engineer, has_helpful_engineer): Rename. Require allied
engineers.  This affecs command `fortify'.
2004-01-28 10:46:57 +00:00
f7faeb6470 (lnd_fortify): New, factored out of fort().
(fort): Use it; no functional changes.
(is_engineer): Move to logical place, external linkage.
2004-01-28 09:31:22 +00:00