Commit graph

5084 commits

Author SHA1 Message Date
Marc Olzheim
21761891f0 (EFF_COM,ef_items): No longer in use after removal of 'variables'. Removed.
Clean s_char on the way.
2004-12-16 12:22:58 +00:00
Marc Olzheim
b20ce77e4b (EFF_COM): No longer in use after removal of 'variables' 2004-12-16 12:21:08 +00:00
Ron Koenderink
042372d4c2 (have_looked,have_found,set_have_looked,set_have_found,print_found):
collapse to shiplist function set (add,free,print,on). Fix bug where ship
uid was a unsigned char instead of short.  Switch to head pointer instead
of head record with a linked list. Add a free().
2004-12-16 11:12:28 +00:00
Ron Koenderink
fd700f235b (getopt.h) move to src/lib/gen directory to prevent conflicts with
/usr/include/getopt.h.
2004-12-15 14:02:07 +00:00
Marc Olzheim
ebb9a16af1 Fix bug #883113. Differentiate between sct_work and sct_loyal. 2004-12-15 12:23:56 +00:00
Ron Koenderink
8a8bf00c5e (scuttle_tradeship): Remove carriage return. 2004-12-15 03:00:08 +00:00
Ron Koenderink
4c4dec738c (getopt): Remove carriage return. 2004-12-15 02:52:57 +00:00
Ron Koenderink
8280b7b201 (show_sect_build): Remove carriage return. 2004-12-15 02:51:08 +00:00
Ron Koenderink
e599f08a10 (upd_ship): Remove carriage return. 2004-12-15 02:48:47 +00:00
Marc Olzheim
1fbbccfe72 (prod): Fix bug #1083175. Use max_pop() not just when opt_RES_POP is
enabled to determine the new working population of a sector.
2004-12-14 19:45:47 +00:00
Marc Olzheim
7a593d9083 (orde,eta_calc): Remove unaccessed leftover variables nships,mcp.
No functional changes.
2004-12-14 17:47:03 +00:00
Marc Olzheim
0847b87afa (ship_bomb,land_bomb): Remove unaccessed leftover variables lcp,onsea.
No functional changes.
2004-12-14 17:43:54 +00:00
Marc Olzheim
44c273dd01 (resupply_commod,has_supply,use_supply): Remove unaccessed leftover
variables lcp.  No functional changes.
2004-12-14 17:40:59 +00:00
Marc Olzheim
61cb34b7ef (ac_airtoair): No need to pass def_own, as the owner of the intercepting
planes is used anyway.  Clean up other unaccessed variables in the process.
No functional changes.
2004-12-14 17:21:05 +00:00
Marc Olzheim
70e1ee220f (scut): Remove unaccessed remnants from before 1.1. No functional changes. 2004-12-13 17:36:43 +00:00
Marc Olzheim
d818036c0f Update patches for #include cleanup, changing offsets. No functional changes. 2004-12-13 17:01:07 +00:00
Marc Olzheim
c6ef918f3a Cleanup #includes of (mostly a long time) unused header files.
No functional changes.
2004-12-13 16:47:13 +00:00
Marc Olzheim
cb56cfb870 Only prototypes.h is needed, not all of gen.h. No functional changes. 2004-12-13 16:20:33 +00:00
Marc Olzheim
36441bbee8 Update patch for src/server/main.c:1.23. No functional changes. 2004-12-13 10:33:16 +00:00
Ron Koenderink
f9c5f2f70b (main): Remove the extern for optarg, get from include file. 2004-12-12 22:48:22 +00:00
Ron Koenderink
e7f67071db (do_plague): Remove the carriage return. 2004-12-12 19:46:28 +00:00
Ron Koenderink
4a6346b0df (sct_pstage, sct_ptime, shp_pstage, shp_ptime, lnd_pstage, lnd_ptime):
Use `short' instead of `unsigned short'.  With variables, plague stage
and time were stored unsigned and used signed, which worked.  Removal
of variables dropped the conversion to signed, which broke
plague_people() (plague.c rev. 1.6): stage didn't progress correctly
due to catastrophic underflow of time.
2004-12-12 19:39:35 +00:00
Ron Koenderink
03c96f90d8 (main): Remove the extern for optarg, get from include file.
(main): Cast getpid() to an int for printing.
2004-12-11 11:15:36 +00:00
Ron Koenderink
2f6fa7ec24 (main) [_WIN32]: Remove unneccessary #ifdef for srand,
use #define in misc.h.

(main): Remove unneccessary 'now' variable used for srand().
2004-12-10 11:21:52 +00:00
Ron Koenderink
6bab1fd0a3 (getopt) [_WIN32]: New for parsing command line arguments. 2004-12-10 02:19:30 +00:00
Marc Olzheim
6af5e314a7 Update offset for src/server/main.c:1.21 2004-12-08 18:00:51 +00:00
Ron Koenderink
868020297c (main) [_WIN32]: Switch to Unix style function for access and mkdir. 2004-12-08 13:13:06 +00:00
Ron Koenderink
afc8667d10 (main) [_WIN32]: Switch to Unix style function for access and mkdir.
(info) [_WIN32]: Switch to standard function for strncasecmp.
2004-12-08 13:10:15 +00:00
Ron Koenderink
2d48dd0859 (print_usage): New.
(main): Use it.

(main) [_WIN32]: Parse command line arguments.

(main) [_WIN32]:  Switch to Unix style function for access and mkdir.
2004-12-08 13:02:10 +00:00
Ron Koenderink
97113af8ff (getopt) [_WIN32]: New for parsing command line arguments. 2004-12-08 12:59:28 +00:00
Ron Koenderink
8c99088a3e (print_usage): New.
(main): Use it.

(main) [_WIN32]: Parse command line arguments.
2004-12-08 12:42:53 +00:00
Ron Koenderink
53c3f5b6b4 (emp_server.exe): Link with advapi32.lib for getpid(). 2004-12-07 19:00:12 +00:00
Ron Koenderink
e9047070c7 (main) [_WIN32]: remove WIN32 flags for the getpid functions and
standardize the code.

(nullify_objects): Remove unneccesary carriage returns.
2004-12-07 18:48:27 +00:00
Ron Koenderink
098f7202b1 (scuttle_tradeships): calculate ally percentage before ally bonus is applied.
Change to match the description in the info page.
2004-12-05 14:14:19 +00:00
Marc Olzheim
233f93303c Don't run the test script on the 64bit Solaris build, since it hangs the emp_server. 2004-11-30 18:21:57 +00:00
Marc Olzheim
2b45b8ff8d Add some more elaborate tests for player 1 2004-11-29 21:28:51 +00:00
Ron Koenderink
fa0a1443e4 Fix spelling mistake. 2004-11-26 13:27:02 +00:00
Marc Olzheim
06f23dab0b Update patch offsets. No functional changes. 2004-11-26 09:52:25 +00:00
a4a439884e (news_ca): Revert bad change made in rev. 1.22. 2004-11-15 21:57:58 +00:00
6c852f2a56 (prod): Fix rounding of value in column `max'. 2004-11-14 14:13:07 +00:00
Ron Koenderink
d40ea86b61 (info): Print the info topics found when the abbreviation is not unique. Closes #1018302. 2004-11-11 01:58:35 +00:00
Ron Koenderink
8fdd0259f2 (info): Fix when with last character is special.
Also reorganized to check for special characters then blank.

(info): Add length boundary check to filename variable.
Change WIN32 to use the same code.

(info) [_WIN32]: Fix check for invalid file attributes.

(apro): Ensure the user does not see the directory information on error.
See #1028552 for reference.

(apro): Ensure the directories, operating system files, and
hidden files are skipped.
2004-11-10 00:02:29 +00:00
Ron Koenderink
adfc536122 i_type shift (include/item.h 1.12) broke the production of tech/res/edu/hap.
Switch p_type to use I_NONE for products that to not produce items.
2004-10-31 15:01:19 +00:00
Ron Koenderink
8d792e1b9f (dchr): Negative d_cost now means that only deity can designate.
(nullify_objects, do_desi): Simpify designate restrictions of options
NO_LCMS, NO_HCMS, NO_OIL.

(show_sect_build): Suppress printing of sectors only deity can
designate.  This was broken in rev. 1.15.
2004-10-29 01:38:06 +00:00
Ron Koenderink
8179063330 Correct the instructions for the Win32 build. 2004-10-19 12:52:59 +00:00
Ron Koenderink
e474b80b78 (main,termio): Add the ability to set the username.
Get it from environment variable LOGNAME if set,
else get the user name from the system.
2004-10-19 01:48:24 +00:00
Ron Koenderink
9faba52ba4 (main, termio): Add the ability to set the username.
Get it from environment variable LOGNAME if set,
else get the user name from the system.

(main) [_DWIN32]: Add stdin redirection ability to the Win32 port.
The client reads until stdin redirection empty and then terminates.
2004-10-19 01:11:31 +00:00
Marc Olzheim
39facfbf53 (var.h, plague.h): Since all that was left in var.h were some plague
defines, import these defines into plague.h, drop var.h and include
plague.h where appropriate.
Remove some 'register' keywords at the same time.
No functional changes.
2004-10-12 20:25:33 +00:00
Marc Olzheim
e9a040adb9 Do not include var.h where no longer needed. Clean up register keywords in these file at the same time. No functional changes. 2004-10-12 20:08:51 +00:00
Marc Olzheim
442803c30a (i_type, I_NONE): shift the enum down 1, so that I_NONE does not need to
be skipped or stored in arrays of size I_MAX. I_NONE's int equivalent
becomes -1 by this patch, so all array indices of type i_type have been
checked not to use I_NONE as index.  This change reduces the size of the
arrays stored in files.
2004-10-12 19:48:53 +00:00