Commit graph

850 commits

Author SHA1 Message Date
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
Ron Koenderink
953e5f6dc7 (xdprval): Only use of prnf() that is not for telegram text.
Replace by pr() in preparation of output conversion of telegram text
for the UTF-8 option.
2005-03-26 17:21:23 +00:00
Ron Koenderink
a156902d5f (): Improve the explaination of the options in wire command.
Make wire.t similiar to the read.t and incorporate the
improvements from #1010010.
2005-03-26 17:17:42 +00:00
7775f41186 Update for 4.2.21. 2005-03-26 05:29:27 +00:00
Marc Olzheim
e15b045713 (wu,typed_wu): close() a sent telegram before waking up other threads.
Remove s_char and register on the way.
2005-03-26 00:23:25 +00:00
Marc Olzheim
73a94a3591 (turn): Check whether fclose() succeeds. 2005-03-25 23:59:48 +00:00
Ron Koenderink
899bc18853 (): Remove -e from the list of no parameter options in the fairland
manual page.  There is not -e without parameter option.
There is -e with parameter option and it is properly
documented.
2005-03-25 21:28:25 +00:00
Ron Koenderink
92ac36ec56 (rea): Set parameters for read to [yes|no|<CNUM/CNAME>].
Add parameters for read in the command list and the info pages.
Closes #1010010.
2005-03-25 21:04:39 +00:00
782474a6c3 Document Windows usage. Since this is useless and confusing on other
platforms, it is only included in if number register w is non-zero.
2005-03-25 08:45:41 +00:00
cec548b32b Rewrite. 2005-03-25 08:34:51 +00:00
2af6fcd78e More 4.2.20 changes. 2005-03-22 21:10:44 +00:00
2cf7bacf03 Remove .UC; we're not be part of BSD. 2005-03-22 20:56:41 +00:00
60ef3f4c23 (lnd_mar_one_sector): When units in different sectors march, only
units in the sector with the highest-numbered unit were interdicted.
A marching non-spy made all marching spies visible to interdiction
regardless of location.  Interdict sector by sector, similar to
shp_nav_one_sector().  Interdict spies only if they are together with
non-spies in the same sector.
2005-03-22 20:49:54 +00:00
19a80f13c4 (shp_nav_one_sector): When shp_interdict() removed the second ship in
a sector, interdiction loop followed dangling pointer and crashed.
Simplify & fix.
(mlist): Member done no longer used, remove.
2005-03-21 21:05:08 +00:00
1c3eead016 Fix the previous rev. 2005-03-21 19:31:46 +00:00
Ron Koenderink
f826221a58 [_WIN32]: Add #define WIN32 whereever winsock2.h is used. There is bug
in the VC7 version of winsock2.h.  In version VC7, the #pragma
pack(push) and pack(pop) have an #ifdef !WIN32 add to them.  However,
if WIN32 is not defined at the beginning, the push is done but by the
time the pop is reach something else has set WIN32 define so the pop
is not done, and it changes the default pack from /Zp2 to /Zp4, which
makes the data structures incompatible between objects with winsock2.h
and without winsock2.h.  By adding the WIN32 both the push and pop are
not done.
2005-03-20 11:07:45 +00:00
4bb4376a57 (nstr_parse_val): strtod() recognizes a few strings as numbers that we
want to recognize as identifiers, notably "inf".  Recognize
identifiers starting with letters before numbers.
2005-03-19 17:16:29 +00:00
db0773145d Fix the previous rev. 2005-03-19 17:04:20 +00:00
17f8ffee1b (produce): When player->simulation, level production executed item
production code for item I_NONE.  This tries to put products into
vec[I_NONE].  Until item.h rev. 1.12, vec[I_NONE] was unused and zero,
so it worked.  Since then, it's a subscript out of bounds, clobbering
two bytes of stack.  The (unpredictable) stack contents could make the
code believe that there's not enough space for the `products', which
then reduced predicted production, typically to zero.
2005-03-19 16:50:22 +00:00
ab509c22ef (guerrilla): Fix saturation of civilians (new in rev. 1.9). It
created anti-uw, which made the next checksect() oops.
2005-03-19 15:57:41 +00:00
96e380e909 (_c_copyright_header, _ipglob_copyright_header, copyright_header):
_c_copyright_header and _ipglob_copyright_header are almost identical.
Replace by copyright_header, interpolate variable parts with printf.

(wrmakesrc, wrauth, wrgamesdef): Make generated file comments match
our usual style a bit more closely.

(wrgamesdef): Fix generated comment on overwrite.
2005-03-18 20:51:39 +00:00
a6f1944384 Update to match current prod.c. 2005-03-18 20:09:53 +00:00
df476395fb Update for 4.2.20. 2005-03-17 21:49:59 +00:00
b1f973faed Indentation fix. 2005-03-17 21:47:42 +00:00
56c4551f8b Get version from version.h. 2005-03-17 19:33:50 +00:00
Marc Olzheim
e60594ac89 Update patch to contain proper headers of file versions. 2005-03-17 10:11:11 +00:00
b0e0c1b321 (prod): New column avail'. Narrow column will make' (amount and
short product name) to `make' (amount and, if product is an item,
product mnemonic).
2005-03-16 22:12:31 +00:00
345ad3dfe0 Update copyright notice. 2005-03-16 22:03:16 +00:00
90e1ac57df Fix the previous rev. 2005-03-16 20:57:21 +00:00
147cf97224 (main): Rev. 1.43 broke option -D. Its meaning in presence of -e is
unclear.  Other programs only support -e.  Remove -D.
(install_service): Remove argument datadir_set.

(main): New option -v.

(main): Exit successfully after -h.

(main): Don't print usage on unknown options, just point to -h.

(print_usage): Rewrite.  Deprecate use of non-option arguments.
2005-03-16 20:53:27 +00:00
3939741d65 (main): Fix -p to imply -d as documented, not just !daemonize.
(main): -s no longer implies -p.
(main) [_WIN32]: Recognize -s.  ntthread.c ignores it.
2005-03-16 18:41:44 +00:00
a6b5b1d567 (lwpStatus): Fix potential buffer overflow. 2005-03-16 18:08:39 +00:00
75deff7811 (lwpInitSystem): Stack checking doesn't work and is not necessary for
main thread; clear LWP_STACKCHECK.
(lwpStackCheck): Log stack overflow/underflow and abort.
2005-03-16 18:06:03 +00:00
Marc Olzheim
06c326fc5f Remove useless cast. No funtional changes. 2005-03-16 09:13:48 +00:00
9e08f17fd3 Fix comment line breaks. 2005-03-16 07:19:07 +00:00
750884dbc7 Fix the previous rev. 2005-03-16 06:27:15 +00:00
Ron Koenderink
c38a64d3a9 (loc_Ctrl_C_Handler,loc_Exit_Handler) [_WIN32]: Process other
exit methods in the same way as ctrl-c.  Change loc_Ctrl_C_Handler()
to loc_Exit_Handler() to reflect changed functionality.
2005-03-16 02:39:51 +00:00
Ron Koenderink
1af2a6fc8b (main) [_WIN32]: Remove second break from -i option. 2005-03-16 02:01:34 +00:00
Ron Koenderink
706e124e82 (main) [_WIN32]: Add check to command line checks to ensure
-p is not used with install or remove sevice options.

(main) [_WIN32]: Improve error messages for errors found
duing the command line checks.
2005-03-16 01:51:22 +00:00
Marc Olzheim
6a99690e4e Get rid of "s_char", "register" and 0 used instead of NULL in the
client source.  No functional changes.
2005-03-15 21:47:41 +00:00