]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(gamedown, show_motd): Fix message buffer size. Messages of maximum
Markus Armbruster [Sun, 12 Jun 2005 09:25:22 +0000 (09:25 +0000)]
(gamedown, show_motd): Fix message buffer size.  Messages of maximum
length were considered overlong and ignored.

18 years agoRemove some redundant casts.
Markus Armbruster [Sun, 12 Jun 2005 08:17:13 +0000 (08:17 +0000)]
Remove some redundant casts.

18 years agoRemove a bunch of redundant casts.
Markus Armbruster [Sun, 12 Jun 2005 06:31:48 +0000 (06:31 +0000)]
Remove a bunch of redundant casts.

18 years ago(rea): Portability fix.
Markus Armbruster [Sun, 12 Jun 2005 05:25:28 +0000 (05:25 +0000)]
(rea): Portability fix.

18 years ago[_WIN32] (loc_StripDels): Remove. Different behavior depending on the
Markus Armbruster [Sat, 11 Jun 2005 16:44:01 +0000 (16:44 +0000)]
[_WIN32] (loc_StripDels): Remove.  Different behavior depending on the
platform is evil, and line editing is none of the server's business
anyway.  If your client can't deal with the delete key, well, here's a
nickel, kid, get yourself a better computer.

18 years ago(ioq_gets): Support telnet line termination "\r\n". Previously,
Markus Armbruster [Sat, 11 Jun 2005 16:38:58 +0000 (16:38 +0000)]
(ioq_gets): Support telnet line termination "\r\n".  Previously,
string input other than through parse() or getele() failed to strip
'\r', which could end up in ship names and such.
(getele): Code dealing with '\r' is now redundant, remove.  It ceased
to work in rev. 1.6 because input filtering replaces '\r' by '?'.

18 years agoFix markup.
Markus Armbruster [Sat, 11 Jun 2005 13:41:11 +0000 (13:41 +0000)]
Fix markup.

18 years agoSpelling fixes.
Markus Armbruster [Sat, 11 Jun 2005 13:38:47 +0000 (13:38 +0000)]
Spelling fixes.

18 years agoFix the previous revision.
Markus Armbruster [Sat, 11 Jun 2005 13:38:42 +0000 (13:38 +0000)]
Fix the previous revision.

18 years ago(sendmessage): Skip players not in state PS_PLAYING. Flashes to them
Markus Armbruster [Thu, 9 Jun 2005 22:28:54 +0000 (22:28 +0000)]
(sendmessage): Skip players not in state PS_PLAYING.  Flashes to them
get ignored, hence telling the player that the flash was sent is
wrong.  Skipping fixes that.

18 years ago(mobupdate): Don't print '\r' after '\n'.
Markus Armbruster [Thu, 9 Jun 2005 22:22:53 +0000 (22:22 +0000)]
(mobupdate): Don't print '\r' after '\n'.

18 years ago(play): Simplify counting of players.
Markus Armbruster [Thu, 9 Jun 2005 22:21:54 +0000 (22:21 +0000)]
(play): Simplify counting of players.

18 years ago(options_cmd): List options only if none are set.
Markus Armbruster [Thu, 9 Jun 2005 22:18:32 +0000 (22:18 +0000)]
(options_cmd): List options only if none are set.

(list_cmd, login_coms): Login command list is obscure and redundant;
remove.

(login-coms): Improve doc strings.

18 years ago(nstr_string_ok): New.
Markus Armbruster [Thu, 9 Jun 2005 22:12:32 +0000 (22:12 +0000)]
(nstr_string_ok): New.
(nstr_comp): Use it to fix oops on `des='.  Reported by Doug Wescott.

18 years ago(getsose): Port from obsolete termcap to terminfo. The old code
Markus Armbruster [Sat, 4 Jun 2005 13:03:16 +0000 (13:03 +0000)]
(getsose): Port from obsolete termcap to terminfo.  The old code
manually stripped off padding, which is evil.  The new code does
nothing when the stdout is not connected to a terminal.
(SO, smso, SE, rmso): Rename, static linkage.
(putso, putse): New.
(screen): Use it.

18 years ago(hidd,peek): Rename hidden command to peek.
Ron Koenderink [Wed, 1 Jun 2005 12:26:22 +0000 (12:26 +0000)]
(hidd,peek): Rename hidden command to peek.
This prevents a conflict in the info files with
HIDDEN option.

18 years agoUpdate for src/util/fairland.c:1.23 and src/server/main.c:1.62
Marc Olzheim [Tue, 31 May 2005 09:02:33 +0000 (09:02 +0000)]
Update for src/util/fairland.c:1.23 and src/server/main.c:1.62

18 years agoSpelling fixes.
Ron Koenderink [Tue, 31 May 2005 03:31:58 +0000 (03:31 +0000)]
Spelling fixes.

18 years ago(program_name, help): New.
Markus Armbruster [Mon, 30 May 2005 15:15:33 +0000 (15:15 +0000)]
(program_name, help): New.
(main): New option -h.  Terminate unsuccessfully on invalid option.
(usage, parse_args): Factored usage() out of parse_args().
(parse_args): More useful diagnostics.

18 years ago(prod_plane): Remove redundant initialization.
Markus Armbruster [Mon, 30 May 2005 15:07:34 +0000 (15:07 +0000)]
(prod_plane): Remove redundant initialization.

18 years ago(sarg_type): Simplify, no functional change.
Markus Armbruster [Mon, 30 May 2005 15:06:31 +0000 (15:06 +0000)]
(sarg_type): Simplify, no functional change.

18 years agoDoc & formatting fixes.
Markus Armbruster [Mon, 30 May 2005 15:03:24 +0000 (15:03 +0000)]
Doc & formatting fixes.

18 years ago(flee, army, wing): Print how many new members were added.
Markus Armbruster [Mon, 30 May 2005 14:56:02 +0000 (14:56 +0000)]
(flee, army, wing): Print how many new members were added.
Previously, it printed how many were selected, which can include old
members of the group.

(flee, army): The rather obscure feature to assign the fleet's /
army's retreat orders to members was broken.  It ignored ownership,
and thus could copy some other player's retreat orders.  Abusable.
Copying the first member's retreat orders is less than useful, in
particular for group ~.  The code now chooses the first one in the
same sector with RET_GROUP set.  RET_GROUP is never set for group ~.

18 years agoFix .SA.
Markus Armbruster [Mon, 30 May 2005 07:35:15 +0000 (07:35 +0000)]
Fix .SA.

18 years agoCosmetic change of markup.
Markus Armbruster [Mon, 30 May 2005 06:15:21 +0000 (06:15 +0000)]
Cosmetic change of markup.

18 years agoFix the previous revision.
Markus Armbruster [Mon, 30 May 2005 06:14:22 +0000 (06:14 +0000)]
Fix the previous revision.

18 years agoUpdated from man/emp_client.6 rev. 1.9.
Markus Armbruster [Mon, 30 May 2005 05:18:33 +0000 (05:18 +0000)]
Updated from man/emp_client.6 rev. 1.9.

18 years agoAdd notes for Client Implementors.
Ron Koenderink [Sun, 29 May 2005 22:21:34 +0000 (22:21 +0000)]
Add notes for Client Implementors.

18 years ago(output,screen): In ASCII mode, remove standout bit if the client
Ron Koenderink [Sun, 29 May 2005 16:22:14 +0000 (16:22 +0000)]
(output,screen): In ASCII mode, remove standout bit if the client
does not support standout mode.
In UTF8 mode, remove SO/SI characters if the client does not support
standout mode.

18 years agoAdd the See Also "Moving" to the commands described
Ron Koenderink [Sun, 29 May 2005 15:46:13 +0000 (15:46 +0000)]
Add the See Also "Moving" to the commands described
in the info file.

18 years agoCorrect the number of commands in the described in the text.
Ron Koenderink [Sun, 29 May 2005 15:40:34 +0000 (15:40 +0000)]
Correct the number of commands in the described in the text.

18 years agoChanged the name of Attack and Move concept files and
Ron Koenderink [Sun, 29 May 2005 14:17:07 +0000 (14:17 +0000)]
Changed the name of Attack and Move concept files and
a number of Subjects files to prevent name
conflicts where the only the case is difference.
Attack -> Attacking
Moving -> Transportation
Move -> Moving
Market -> Commerce
Nation -> Nations
Production -> Producing
Update -> Updating

18 years ago(EFF_OWNER): The assertion that EFF_OWNER implies ef_read() sets
Markus Armbruster [Sun, 29 May 2005 14:14:33 +0000 (14:14 +0000)]
(EFF_OWNER): The assertion that EFF_OWNER implies ef_read() sets
player->owner is no longer used.  Use it to indicate that owner can be
accessed through struct genitem, similar to EFF_XY and EFF_GROUP.
(xdump): Fix ownership checking.  Old version worked only when
nxtitem() set player->owner.

(empfile): Set EFF_OWNER for EF_LOST.  This fixes `xdump lost'
disclosing other countries' losses.
(loststr): Document implications of EFF_OWNER.

(empfile): Set EFF_OWNER for EF_NATION.
(natstr): Rearrange members for EFF_OWNER, document.
(nat_ca): Unused so far.  Clean it up, add most missing selectors.
(fileinit): Use it.  This implements `xdump nation'.

(fileinit): Simplify setting map file size.

18 years ago(nxtitem): Skipped unowned sectors (could not occur), ships, planes,
Markus Armbruster [Sun, 29 May 2005 13:15:56 +0000 (13:15 +0000)]
(nxtitem): Skipped unowned sectors (could not occur), ships, planes,
land units and nukes for selection type NS_LIST.  Thus, unowned items
explicitly selected by item number are skipped, while the same items
selected implicitely by group, area or whatever are not.  This makes
no sense.  Some callers break the nstr_item abstraction to prevent the
skipping, so they get all items regardless of how they were selected.
All other callers filter out unowned items.  This skipping misfeature
dates back to the very oldest known versions of Empire.  Remove it.
Also remove skipping prevention hacks from callers.

(tend_nxtitem): Now identical to nxtitem(), except it lacks some extra
normalization of item coordinates, which should have no effect.
Replace by nxtitem().

18 years ago(findlost): Static linkage.
Markus Armbruster [Sat, 28 May 2005 16:04:08 +0000 (16:04 +0000)]
(findlost): Static linkage.

18 years ago(LIBS, NTLIBS): Remove libsubs.a.
Markus Armbruster [Sat, 28 May 2005 16:02:46 +0000 (16:02 +0000)]
(LIBS, NTLIBS): Remove libsubs.a.

18 years ago(main): Fix checking of ef_open()'s value. Fixes program exit status
Markus Armbruster [Sat, 28 May 2005 15:57:17 +0000 (15:57 +0000)]
(main): Fix checking of ef_open()'s value.  Fixes program exit status
when files can't be opened.

(logerror): The version from libcommon.a does the right thing since
log.c rev. 1.17.  Use it, remove local version.

(log_last_commands): No longer referenced by library code, remove.

18 years ago(ef_write): Don't call log_last_commands() directly, use oops(). If
Markus Armbruster [Sat, 28 May 2005 15:52:29 +0000 (15:52 +0000)]
(ef_write): Don't call log_last_commands() directly, use oops().  If
it's worth logging commands, then it's worth dumping core.

18 years ago(debug): Move to log.c, so other programs don't have to define debug
Markus Armbruster [Sat, 28 May 2005 15:34:21 +0000 (15:34 +0000)]
(debug): Move to log.c, so other programs don't have to define debug
themselves just to use logerror().

18 years agoClean up the previous revision; no functional changes.
Markus Armbruster [Sat, 28 May 2005 08:46:33 +0000 (08:46 +0000)]
Clean up the previous revision; no functional changes.

18 years agoUpdate patch for some minor offset changes.
Marc Olzheim [Sat, 28 May 2005 08:44:57 +0000 (08:44 +0000)]
Update patch for some minor offset changes.

18 years agoUpdate patch for pr.c:1.12
Marc Olzheim [Sat, 28 May 2005 08:44:09 +0000 (08:44 +0000)]
Update patch for pr.c:1.12

18 years agoRemove some redundant casts.
Markus Armbruster [Sat, 28 May 2005 08:37:52 +0000 (08:37 +0000)]
Remove some redundant casts.

18 years agoClean up the previous revision. No functional changes.
Markus Armbruster [Sat, 28 May 2005 08:25:28 +0000 (08:25 +0000)]
Clean up the previous revision.  No functional changes.

18 years ago(nxtitemp): Remove last parameter. Non-zero argument doesn't make
Markus Armbruster [Sat, 28 May 2005 08:22:42 +0000 (08:22 +0000)]
(nxtitemp): Remove last parameter.  Non-zero argument doesn't make
sense and is never passed.  Callers changed.

18 years agoDocument implications of EFF_OWNER.
Markus Armbruster [Sat, 28 May 2005 08:20:07 +0000 (08:20 +0000)]
Document implications of EFF_OWNER.

18 years agoDocument struct equivalence hack and implications of EFF_XY and
Markus Armbruster [Sat, 28 May 2005 08:03:31 +0000 (08:03 +0000)]
Document struct equivalence hack and implications of EFF_XY and
EFF_GROUP.

18 years agoClient UTF-8 support.
Markus Armbruster [Fri, 27 May 2005 17:00:25 +0000 (17:00 +0000)]
Client UTF-8 support.
(login): New parameter utf8.  If set, request option utf-8 from
server.
(expect, recvline): Split recvline() out of expect().  Replace or
remove some unhelpful diagnostics.
(eight_bit_clean): New.
(screen): If eight_bit_clean is set, highlighting is switched with
SO/SI.  Else characters with MSB set are highlighted.
(main): New option -u to request UTF-8 and set eight_bit_clean.

18 years agoLogin options.
Markus Armbruster [Fri, 27 May 2005 16:31:19 +0000 (16:31 +0000)]
Login options.
(player): New member flags.
(PF_UTF8, NF_UTF8): New PF_UTF8 replaces NF_UTF8.  Users changed.
(options_cmd): New.
(login_coms): New command `options'.
(toggle): Revert to the previous rev.

18 years ago(coun_cmd): Fix return value when country doesn't exist. No
Markus Armbruster [Fri, 27 May 2005 16:24:55 +0000 (16:24 +0000)]
(coun_cmd): Fix return value when country doesn't exist.  No
functional change, as caller treats old and fixed value the same.

18 years ago(uprmtrd): Remove the unsigned char cast for cp, not necessary.
Ron Koenderink [Fri, 27 May 2005 12:16:57 +0000 (12:16 +0000)]
(uprmtrd): Remove the unsigned char cast for cp, not necessary.

18 years ago(sendcmd): Change argument cmd to string. Callers changed.
Markus Armbruster [Thu, 26 May 2005 13:18:58 +0000 (13:18 +0000)]
(sendcmd): Change argument cmd to string.  Callers changed.
(fnlist, fn, USER, COUN, QUIT, PASS, PLAY, LIST, CMD, CTLD, KILL):
Unused, remove.

18 years ago(getele): ~p printed user text as normal text.
Markus Armbruster [Thu, 26 May 2005 12:50:08 +0000 (12:50 +0000)]
(getele): ~p printed user text as normal text.

18 years agoSupport UTF-8 encoded Unicode for user communications.
Ron Koenderink [Thu, 26 May 2005 01:58:48 +0000 (01:58 +0000)]
Support UTF-8 encoded Unicode for user communications.
(NF_UTF8, togg): New client flag.
(flash, wall): User text input filtering.
(parse, prmptrd): Normal text input filtering.
(uprmptrd, ugetstring): New, to get user text.
(getele, flash, wall): Use them.
(getele): No need to filter out funny characters; input filtering
takes care of them.
(sendmessage, ufindbreak): Work on user text.
(uprnf): New, to print user text.
(rea, gamedown, show_motd): Use it.
(prnf): Unused, remove.
(pr, upr_player): Normal text output filtering (with highlighting).
(pr_flash): User text output filtering.

18 years ago(lnd_support): New parameter defending, to report defensive support in
Markus Armbruster [Tue, 24 May 2005 18:38:36 +0000 (18:38 +0000)]
(lnd_support): New parameter defending, to report defensive support in
the news correctly, like dd() and sd() do.  Reported by Doug Wescott.

18 years agoInitial Release.
Ron Koenderink [Sun, 22 May 2005 00:52:43 +0000 (00:52 +0000)]
Initial Release.

18 years agoUpdate for Make.sysdefs:1.9: Get rid of -DPOSIXSIGNALS.
Marc Olzheim [Mon, 16 May 2005 23:45:39 +0000 (23:45 +0000)]
Update for Make.sysdefs:1.9: Get rid of -DPOSIXSIGNALS.

18 years agoUse NULL instead of 0 where appropriate. No functional changes.
Marc Olzheim [Mon, 16 May 2005 22:24:21 +0000 (22:24 +0000)]
Use NULL instead of 0 where appropriate.  No functional changes.

18 years ago(nstr_comp): Interpret identifiers as strings only when the
Markus Armbruster [Sat, 14 May 2005 18:07:48 +0000 (18:07 +0000)]
(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.

18 years ago(build_bridge,build_tower,retreat_ship1): Mark "X" on sector
Ron Koenderink [Sun, 8 May 2005 18:39:09 +0000 (18:39 +0000)]
(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.

18 years ago(ship_ca): Selector mobquota clashes with mobil, rename to mquota.
Markus Armbruster [Sun, 8 May 2005 15:25:11 +0000 (15:25 +0000)]
(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.

18 years ago(MINES_MAX): Change to 32767. MINES_MAX was not adjusted from 65535
Ron Koenderink [Sat, 7 May 2005 19:49:04 +0000 (19:49 +0000)]
(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.

18 years ago(servercmd): Parsed BTUs into nmin and minutes into nbtu. Fix. No
Markus Armbruster [Sat, 7 May 2005 08:47:32 +0000 (08:47 +0000)]
(servercmd): Parsed BTUs into nmin and minutes into nbtu.  Fix.  No
functional change.

18 years ago(main,install_service) [_WIN32]: Move the construction of full path names
Ron Koenderink [Tue, 3 May 2005 00:06:10 +0000 (00:06 +0000)]
(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.

19 years ago(ship_grow_scale, plane_grow_scale, land_grow_scale): Change from int
Ron Koenderink [Tue, 5 Apr 2005 03:00:35 +0000 (03:00 +0000)]
(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.

19 years ago(prod): All sectors produce when efficiency >=60%, not only enlistment
Markus Armbruster [Mon, 4 Apr 2005 18:54:14 +0000 (18:54 +0000)]
(prod): All sectors produce when efficiency >=60%, not only enlistment
centers.

19 years ago(xdprval): Only use of prnf() that is not for telegram text.
Ron Koenderink [Sat, 26 Mar 2005 17:21:23 +0000 (17:21 +0000)]
(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.

19 years ago(): Improve the explaination of the options in wire command.
Ron Koenderink [Sat, 26 Mar 2005 17:17:42 +0000 (17:17 +0000)]
(): Improve the explaination of the options in wire command.
Make wire.t similiar to the read.t and incorporate the
improvements from #1010010.

19 years agoUpdate for 4.2.21.
Markus Armbruster [Sat, 26 Mar 2005 05:29:27 +0000 (05:29 +0000)]
Update for 4.2.21.

19 years ago(wu,typed_wu): close() a sent telegram before waking up other threads.
Marc Olzheim [Sat, 26 Mar 2005 00:23:25 +0000 (00:23 +0000)]
(wu,typed_wu): close() a sent telegram before waking up other threads.
Remove s_char and register on the way.

19 years ago(turn): Check whether fclose() succeeds.
Marc Olzheim [Fri, 25 Mar 2005 23:59:48 +0000 (23:59 +0000)]
(turn): Check whether fclose() succeeds.

19 years ago(): Remove -e from the list of no parameter options in the fairland
Ron Koenderink [Fri, 25 Mar 2005 21:28:25 +0000 (21:28 +0000)]
(): 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.

19 years ago(rea): Set parameters for read to [yes|no|<CNUM/CNAME>].
Ron Koenderink [Fri, 25 Mar 2005 21:04:39 +0000 (21:04 +0000)]
(rea): Set parameters for read to [yes|no|<CNUM/CNAME>].
Add parameters for read in the command list and the info pages.
Closes #1010010.

19 years agoDocument Windows usage. Since this is useless and confusing on other v4.2.20
Markus Armbruster [Fri, 25 Mar 2005 08:45:41 +0000 (08:45 +0000)]
Document Windows usage.  Since this is useless and confusing on other
platforms, it is only included in if number register w is non-zero.

19 years agoRewrite.
Markus Armbruster [Fri, 25 Mar 2005 08:34:51 +0000 (08:34 +0000)]
Rewrite.

19 years agoMore 4.2.20 changes.
Markus Armbruster [Tue, 22 Mar 2005 21:10:44 +0000 (21:10 +0000)]
More 4.2.20 changes.

19 years agoRemove .UC; we're not be part of BSD.
Markus Armbruster [Tue, 22 Mar 2005 20:56:41 +0000 (20:56 +0000)]
Remove .UC; we're not be part of BSD.

19 years ago(lnd_mar_one_sector): When units in different sectors march, only
Markus Armbruster [Tue, 22 Mar 2005 20:49:54 +0000 (20:49 +0000)]
(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.

19 years ago(shp_nav_one_sector): When shp_interdict() removed the second ship in
Markus Armbruster [Mon, 21 Mar 2005 21:05:08 +0000 (21:05 +0000)]
(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.

19 years agoFix the previous rev.
Markus Armbruster [Mon, 21 Mar 2005 19:31:46 +0000 (19:31 +0000)]
Fix the previous rev.

19 years ago[_WIN32]: Add #define WIN32 whereever winsock2.h is used. There is bug
Ron Koenderink [Sun, 20 Mar 2005 11:07:45 +0000 (11:07 +0000)]
[_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.

19 years ago(nstr_parse_val): strtod() recognizes a few strings as numbers that we
Markus Armbruster [Sat, 19 Mar 2005 17:16:29 +0000 (17:16 +0000)]
(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.

19 years agoFix the previous rev.
Markus Armbruster [Sat, 19 Mar 2005 17:04:20 +0000 (17:04 +0000)]
Fix the previous rev.

19 years ago(produce): When player->simulation, level production executed item
Markus Armbruster [Sat, 19 Mar 2005 16:50:22 +0000 (16:50 +0000)]
(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.

19 years ago(guerrilla): Fix saturation of civilians (new in rev. 1.9). It
Markus Armbruster [Sat, 19 Mar 2005 15:57:41 +0000 (15:57 +0000)]
(guerrilla): Fix saturation of civilians (new in rev. 1.9).  It
created anti-uw, which made the next checksect() oops.

19 years ago(_c_copyright_header, _ipglob_copyright_header, copyright_header):
Markus Armbruster [Fri, 18 Mar 2005 20:51:39 +0000 (20:51 +0000)]
(_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.

19 years agoUpdate to match current prod.c.
Markus Armbruster [Fri, 18 Mar 2005 20:09:53 +0000 (20:09 +0000)]
Update to match current prod.c.

19 years agoUpdate for 4.2.20.
Markus Armbruster [Thu, 17 Mar 2005 21:49:59 +0000 (21:49 +0000)]
Update for 4.2.20.

19 years agoIndentation fix.
Markus Armbruster [Thu, 17 Mar 2005 21:47:42 +0000 (21:47 +0000)]
Indentation fix.

19 years agoGet version from version.h.
Markus Armbruster [Thu, 17 Mar 2005 19:33:50 +0000 (19:33 +0000)]
Get version from version.h.

19 years agoUpdate patch to contain proper headers of file versions.
Marc Olzheim [Thu, 17 Mar 2005 10:11:11 +0000 (10:11 +0000)]
Update patch to contain proper headers of file versions.

19 years ago(prod): New column `avail'. Narrow column `will make' (amount and
Markus Armbruster [Wed, 16 Mar 2005 22:12:31 +0000 (22:12 +0000)]
(prod): New column `avail'.  Narrow column `will make' (amount and
short product name) to `make' (amount and, if product is an item,
product mnemonic).

19 years agoUpdate copyright notice.
Markus Armbruster [Wed, 16 Mar 2005 22:03:16 +0000 (22:03 +0000)]
Update copyright notice.

19 years agoFix the previous rev.
Markus Armbruster [Wed, 16 Mar 2005 20:57:21 +0000 (20:57 +0000)]
Fix the previous rev.

19 years ago(main): Rev. 1.43 broke option -D. Its meaning in presence of -e is
Markus Armbruster [Wed, 16 Mar 2005 20:53:27 +0000 (20:53 +0000)]
(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.

19 years ago(main): Fix -p to imply -d as documented, not just !daemonize.
Markus Armbruster [Wed, 16 Mar 2005 18:41:44 +0000 (18:41 +0000)]
(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.

19 years ago(lwpStatus): Fix potential buffer overflow.
Markus Armbruster [Wed, 16 Mar 2005 18:08:39 +0000 (18:08 +0000)]
(lwpStatus): Fix potential buffer overflow.

19 years ago(lwpInitSystem): Stack checking doesn't work and is not necessary for
Markus Armbruster [Wed, 16 Mar 2005 18:06:03 +0000 (18:06 +0000)]
(lwpInitSystem): Stack checking doesn't work and is not necessary for
main thread; clear LWP_STACKCHECK.
(lwpStackCheck): Log stack overflow/underflow and abort.

19 years agoRemove useless cast. No funtional changes.
Marc Olzheim [Wed, 16 Mar 2005 09:13:48 +0000 (09:13 +0000)]
Remove useless cast.  No funtional changes.

19 years agoFix comment line breaks.
Markus Armbruster [Wed, 16 Mar 2005 07:19:07 +0000 (07:19 +0000)]
Fix comment line breaks.