Commit graph

  • d3ad838198 (LINUXPTHCFLAGS): Really don't define __USE_BSD_SIGNAL. Markus Armbruster 2004-02-06 22:57:31 +00:00
  • d64c91d37e (LINUXCFLAGS, LINUXPTHCFLAGS): Don't define lint and __USE_BSD_SIGNAL. The latter can't be found anywhere in source or system headers. Markus Armbruster 2004-02-06 22:53:41 +00:00
  • cdafb96b5e (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. Markus Armbruster 2004-02-06 22:43:35 +00:00
  • 1d872f80e0 Correct info on mining harbors. Closes #827442. Markus Armbruster 2004-02-06 22:31:05 +00:00
  • 5d79233b24 Fix BTU cost. Closes #782956. Markus Armbruster 2004-02-06 22:22:51 +00:00
  • b3bb8368b5 Delete lie about give without arguments. Closes #804709. Markus Armbruster 2004-02-06 22:14:47 +00:00
  • fdef39bac9 Document effect of BLITZ. Delete lies about the total number of players display. Closes #809867. Markus Armbruster 2004-02-06 22:11:13 +00:00
  • b285fbf9ac .SA starts a paragraph. Markus Armbruster 2004-02-06 21:30:08 +00:00
  • 561651629b Spelling fix. Markus Armbruster 2004-02-06 21:28:55 +00:00
  • dd772353bd Properly escape `\'. Fix info on sector capabilities. Closes #861874. Markus Armbruster 2004-02-06 21:27:15 +00:00
  • f71b9a6de2 Fix off-by-one in arguments of substr() that ate first letter of .SY, .EX and .L text. Markus Armbruster 2004-02-06 19:31:41 +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. Markus Armbruster 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. Markus Armbruster 2004-02-06 12:12:58 +00:00
  • 0655744bf7 (msl_hit): Tell victim coordinates of incoming missile. Closes #799873. From Marc Olzheim. Markus Armbruster 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. Markus Armbruster 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. Markus Armbruster 2004-02-05 16:03:59 +00:00
  • aba72ef569 (player_coms): Fix flag argument of map commands in c_form. From Marc Olzheim. Markus Armbruster 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. Markus Armbruster 2004-02-03 17:24:05 +00:00
  • be40df6d7b (wripglob): Don't emit unnecessary includes. Markus Armbruster 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. Markus Armbruster 2004-01-31 19:33:00 +00:00
  • a99bc3be73 (payo, scuttle_tradeship, sdump): Disclose construction site only to original owner and deities. Closes #815197. Markus Armbruster 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. Markus Armbruster 2004-01-31 09:42:34 +00:00
  • 1d004f2f33 Remove outdated version information for now. Keeping it up-to-date by hand is too much work; should be automated. Markus Armbruster 2004-01-30 21:49:54 +00:00
  • 3a1ef7d9b1 Protect space between option and option arg, so that typesetting doesn't swallow it. Markus Armbruster 2004-01-30 21:11:11 +00:00
  • eb64deaf1d (do_mob_land): Do not regenerate mobility faster while it is negative. Markus Armbruster 2004-01-30 16:20:45 +00:00
  • 38912a0659 Add missing pages on sbmap, pbmap, lbmap. Document flags * and h where that was missing. Make all pages fully consistent. Form Marc Olzheim. Markus Armbruster 2004-01-30 15:38:48 +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. Markus Armbruster 2004-01-29 17:07:26 +00:00
  • daad9ed79c (fort): Refuse to fortify land units embarked on land units. Properly report failure to fortify. Markus Armbruster 2004-01-29 13:36:25 +00:00
  • 4b321add52 (lnd_fortify): Do not fortify units embarked on ships or land units. Markus Armbruster 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. Markus Armbruster 2004-01-29 11:55:26 +00:00
  • cff4c77bf9 (player_coms): Fix c_form for upgrade. From Marc Olzheim. Markus Armbruster 2004-01-28 22:12:27 +00:00
  • 759d3185ad Use strict & warnings. Fix several minor bugs uncovered by it. Markus Armbruster 2004-01-28 21:21:48 +00:00
  • dfb337891d Document automatic fortification. Clarify engineer bonus. Markus Armbruster 2004-01-28 21:14:50 +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. Markus Armbruster 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. Markus Armbruster 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. Markus Armbruster 2004-01-28 17:00:29 +00:00
  • c4ae0d89eb (is_engineer, has_helpful_engineer): Rename. Require allied engineers. This affecs command `fortify'. Markus Armbruster 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. Markus Armbruster 2004-01-28 09:31:22 +00:00
  • ab01edbe46 Remove declarations of stuff that doesn't exist. Markus Armbruster 2004-01-28 09:27:28 +00:00
  • 093ac0c4eb Fix typo. Closes #824252. Markus Armbruster 2004-01-23 16:48:23 +00:00
  • 632fbf8d12 (player_new): Proper error checking. Oops, now it may return NULL. Proper error checking in callers required. (update_wait, market_update): If player_new() returns null pointer, skip update. (player_accept): If player_new() returns null pointer, close connection. Markus Armbruster 2004-01-23 13:44:19 +00:00
  • f841200923 (map, draw_map, MAP_HIGH): New map command flag `h' to highlight own sectors; from Marc Olzheim. Markus Armbruster 2004-01-21 14:54:56 +00:00
  • 727be2e126 (sabo): Damage report to player was in deity coordinates, fix. Closes #856856. Markus Armbruster 2004-01-21 10:37:56 +00:00
  • 5c3818ca33 Don't explain sector production twice; replace one copy by a reference. Document execution of ship orders and sail paths. Markus Armbruster 2004-01-20 21:37:17 +00:00
  • d7a054c20a (ROLLOVER_AVAIL, opt_ROLLOVER_AVAIL, Options, do_feed, prod, newe): New option ROLLOVER_AVAIL; from Drake Diedrich. Markus Armbruster 2004-01-20 16:51:43 +00:00
  • 1261d1c825 [apollo]: Tables were gutted for unknown reasons. Don't. Markus Armbruster 2004-01-20 15:50:11 +00:00
  • ab95ad96d2 [_WIN32] Fix previous rev. Markus Armbruster 2004-01-20 15:43:44 +00:00
  • 1504d1f13b (empth_exit): Fix shutdown on reading "quit" from stdin (crash bug, reportedly). Markus Armbruster 2004-01-15 16:29:53 +00:00
  • b2d2815182 Fix previous rev. Markus Armbruster 2004-01-15 14:39:24 +00:00
  • 422a8cea73 (io_select, io_init, io_open, io_close, io_output, io_flush, io_write, io_puts, iom_create, iom_getmask, iom_set, iom_clear, iom_zero): Portability bug: io_select() passed bit_fdmask to select(). This breaks the fd_set abstraction, and works only with the traditional Unix implementation of fd_set. Use fd_set and its operations instead. Remove unused source files. Note: the offending code is currently unsued. But it's a time bomb, and fixing it also replaces a bunch of code by standard library services. Markus Armbruster 2004-01-15 14:32:00 +00:00
  • 5f4503a3a1 Unused, remove. Markus Armbruster 2004-01-15 14:07:15 +00:00
  • 43af569ee5 Merge Makefile rev. 1.5. Update dependencies. Markus Armbruster 2004-01-15 13:49:40 +00:00
  • 4ce5f988d0 Portability fixes: don't declare library functions, include appropriate headers. Also remove some unused declarations. Markus Armbruster 2004-01-15 13:43:50 +00:00
  • 56dce5a8c4 (main): Portability bug: code passed bit_fdmask to select(). This breaks the fd_set abstraction, and works only with the traditional Unix implementation of fd_set. Use fd_set and its operations instead. Remove unused source files. Markus Armbruster 2004-01-15 09:39:51 +00:00
  • 14fb66b032 Fix previous rev. Markus Armbruster 2004-01-15 09:37:06 +00:00
  • 63522d0897 Regenerated. Should be automatically generated by make and removed from the repository. Markus Armbruster 2004-01-13 18:48:00 +00:00
  • b19c346435 (player_coms, lstats, lsta): Rename command lstats' to lstat' to match info as well as related commands sstat' and pstat'. Rename lstats() to lsta() to uphold the convention that functions implementing commands are named like the command or its four character prefix. Closes #804587. Markus Armbruster 2004-01-13 18:46:48 +00:00
  • 92fcbc22a7 (player_coms, best): bestdistpath' and bestpath' violate the rule that commands must be unique within the first four letters. best() implements both. It calls BestDistPath() for the former, and BestLandPath() for the latter. However, BestDistPath() is just a wrapper around BestLandPath(); it does exactly the same. Drop `bestdistpath'. Markus Armbruster 2004-01-13 18:23:26 +00:00
  • c16179eeae (mineq): Rewrite. mineq("dumpcrap", "dump ") now yields ME_MISMATCH instead of ME_PARTIAL. Closes #804611. Markus Armbruster 2004-01-13 17:23:02 +00:00
  • 93c4fecfd6 (index, rindex): Obsolete BSDisms; remove. Use standard strchr() and strrchr() instead. Markus Armbruster 2004-01-13 10:32:35 +00:00
  • e50e1b4b35 (ask_olist): Fix reporting of mobility required for attack. Closes #798045. Markus Armbruster 2004-01-12 20:13:28 +00:00
  • 64fa28aa34 (do_desi): Move check for redesignated capital behind the actual redesignation. Closes #803768. Markus Armbruster 2004-01-12 17:28:22 +00:00
  • 64afd7747b (index, rindex): Obsolete BSDisms; remove. Use standard strchr() and strrchr() instead. (setbuffer): Obsolete BSDism, unused; remove. Markus Armbruster 2004-01-08 18:15:13 +00:00
  • 4ae9c417b3 (bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without effect. Replace calls by struct assignment where possible. Replace clear buffer, copy string to buffer by strncpy(). Use assignment to clear when that's clearer. Replace overlapping copy through bounce buffer by memmove(). Replace rest by standard memset() and memcpy(). Also use sizeof() instead of literal array sizes for robustness, and instead of symbolic array sizes for clarity. Markus Armbruster 2004-01-08 17:54:28 +00:00
  • 2910da23ea Fix missing include <string.h>. Markus Armbruster 2004-01-08 17:26:18 +00:00
  • d0feb8570a (copy, atopi, same): Remove, use strcpy(), atoi(), strcmp(). Callers changed. Remove empty source files. Markus Armbruster 2004-01-08 10:20:44 +00:00
  • 9c90022634 Remove superflous include. Markus Armbruster 2004-01-08 10:11:38 +00:00
  • a86521b7a0 (ffs): Unused, remove. Markus Armbruster 2004-01-08 10:10:19 +00:00
  • f5d8f30606 (login): Fix reading of country name and, if we lack getpass(), password. Used to strip \r from country name (superflous), and not to strip \n from password (required). Markus Armbruster 2004-01-08 05:57:38 +00:00
  • 1332ab9dba Fix previous rev. Markus Armbruster 2004-01-06 20:19:37 +00:00
  • 08480d5625 (wrauth): Emit example `nowhereman@nowhere.land.edu' commented out. nowhere.land.edu doesn't exist right now, but it might pop up any time. Markus Armbruster 2004-01-06 20:18:46 +00:00
  • 1333a40bb8 (info): Use ANSI strerror() instead of non-portable sys_errlist[]. Markus Armbruster 2004-01-06 20:08:53 +00:00
  • 8266bd7246 (logerror): Remove unused cruft. Markus Armbruster 2004-01-06 20:07:03 +00:00
  • 6afd19c73e Fix title. Markus Armbruster 2003-12-18 09:17:07 +00:00
  • 2fe312adac (at_minimum, blocksig, emp_bitinit, filelogerror, iceil, ifloor, mapdsq, mask, signame, strscan, sys_siglist, typed_wire, unblocksig): Unused, remove. Markus Armbruster 2003-12-17 23:13:50 +00:00
  • f883ed1620 List generated files that CVS doesn't ignore by default. Markus Armbruster 2003-12-17 23:02:40 +00:00
  • d8cb7c48f0 Cosmetics. Markus Armbruster 2003-12-17 21:26:26 +00:00
  • aa377df359 (show, show_item): New `show item'. From Ron Koenderink; changes to info files heavily hacked by me. Markus Armbruster 2003-12-17 21:22:08 +00:00
  • 16f5396d30 Spelling fixes. Markus Armbruster 2003-12-17 21:20:01 +00:00
  • 3bf2b1b47f errno may not be a variable; users must include errno.h instead of declaring it like `extern int errno'. Markus Armbruster 2003-12-17 21:18:12 +00:00
  • 5f3b32fd36 (setfdtablesize): Remove. This may drop support for Sequent. Markus Armbruster 2003-12-17 21:14:00 +00:00
  • 1a3a8d993a Fix previous rev. Markus Armbruster 2003-12-17 21:07:54 +00:00
  • fe16863ea2 Makefiles worked only if certain directories and generated files were already present. These files are no longer in CVS. Fix Makefiles. Markus Armbruster 2003-12-17 21:01:37 +00:00
  • 800027023a (show, show_item): New `show item'. From Ron Koenderink; changes to info files heavily hacked by me. Markus Armbruster 2003-12-17 19:50:20 +00:00
  • a889b6ba0e Generated file, shouldn't have been committed. Markus Armbruster 2003-12-17 19:46:54 +00:00
  • 7c6067466c (edit, prsect, doland): Fix `editing' sector coordinates (copies sector). New: edit distribution sector, designation and new designation. From Ron Koenderink. Markus Armbruster 2003-12-17 17:24:30 +00:00
  • eb246aadd1 (update_policy_check, diffx, diffy, takeover_plane): Prototypes were missing. Markus Armbruster 2003-12-17 16:58:16 +00:00
  • ef383c068a Fix some damage done by indent-emp. Code is still hard to read. Markus Armbruster 2003-12-17 16:46:25 +00:00
  • 5dde6b52a9 Remove pragmas that promote certain serious warnings to errors on windows. For obvious reasons, such warnings ought to be fixed. Making compilation abort is the sledgehammer method to force that. It's a stupid method for us, as we develop on various platforms, and don't test every single commit under Windows. It gratuitously breaks programs that work fine. Leave them as warnings, and fix them on sight. Markus Armbruster 2003-12-14 10:15:03 +00:00
  • be168eba05 (edit): Rewrite of undocumented and broken feature: if there are extra arguments, they are interpreted as key-value pairs, and edit does not prompt for more. From Ron Koenderink. (player_coms): Document extended syntax. Markus Armbruster 2003-11-25 19:16:18 +00:00
  • e07fb30663 (sorde): Output format fixes from Ron Koenderink. Markus Armbruster 2003-11-09 13:33:17 +00:00
  • c2c16e1a04 (LND_SPY_DETECT_CHANCE): New. (look_land, sabo, prunits, unitsatxy, lnd_mar_one_sector, count_sect_units, takeover): Use it. Closes bug#786369. Markus Armbruster 2003-11-09 12:52:16 +00:00
  • fc9ec1323a (decl): Remove broken and redundant check of declarer's country number. Check is redundant, because invalid values can come only from natarg(), and those are checked above. Check is broken because natarg() returns negative value on error, not 255. Markus Armbruster 2003-11-09 10:53:06 +00:00
  • c8d23a8f15 Undo some ugly line line-breaks introduced by indent. Markus Armbruster 2003-11-09 10:47:36 +00:00
  • 32c38f795c Spelling fix. Markus Armbruster 2003-11-09 10:46:32 +00:00
  • 6f0c5c6315 Remove some comments that are no longer valid. Markus Armbruster 2003-11-09 10:45:26 +00:00
  • 291e538045 (perform_mission): Fix destruction of missiles. Closes bug#789415. Markus Armbruster 2003-11-09 10:42:29 +00:00
  • f922b09074 (chan): Don't require 254 BTUs even when not charging any (BLITZ). Markus Armbruster 2003-10-04 18:29:29 +00:00
  • fca6c1bc2f List generated files and directories that CVS doesn't ignore by default. Markus Armbruster 2003-10-04 16:01:10 +00:00
  • 713c9a08ea Add proper .SA; it's required by info.pl. Closes #793708. Markus Armbruster 2003-10-04 14:57:05 +00:00