Commit graph

1438 commits

Author SHA1 Message Date
e5f9175394 (repo_header, repo_list): HIDDEN used to suppress column status.
Don't; report status with less detail for HIDDEN instead, like the
country command.
2006-01-05 15:36:49 +00:00
60680a6a2e (rela) Relation columns were slightly wider for opt_SLOW_WAR. Use
wider columns unconditionally.
2006-01-05 15:23:07 +00:00
56d9445d76 Update for flattened info directory. checklist.pl no longer works. 2006-01-05 14:15:11 +00:00
5064c5425f (subjects.mk): Didn't work when info sources were deleted. 2006-01-05 14:13:56 +00:00
2aea9269b9 Streamline copyright notices. Clearly document Stephen Crane's in
README.
2006-01-05 13:58:03 +00:00
2f14064a25 Split info.pl into findsubj.pl, mksubj.pl, mktop.pl. 2006-01-05 13:40:19 +00:00
3e400c018c Update copyright notice. 2006-01-05 13:36:57 +00:00
a5c87a2b54 (EF_NATION_STATUS, nation_status): New.
(empfile): Add it.
(nat_ca): Use it.
2006-01-04 23:15:47 +00:00
6e6cd67bd8 Fix the previous revision. 2006-01-04 23:11:44 +00:00
8b16c31223 Change nation status from bits to a simple enum:
(nat_status, STAT_UNUSED, STAT_VIS, STAT_ACTIVE): New.
(STAT_NEW, STAT_SANCT, STAT_GOD): Change into nat_status members.
(STAT_INUSE, STAT_NORM): Remove.
(natstr): Use new nat_status for nat_stat.
    New value       Old value
    STAT_UNUSED     0
    STAT_NEW        STAT_INUSE | STAT_NEW
    STAT_VIS        STAT_INUSE
    STAT_SANCT      STAT_INUSE | STAT_SANCT
    STAT_ACTIVE     STAT_INUSE | STAT_NORM
    STAT_GOD        STAT_INUSE | STAT_NORM | STAT_GOD
Users changed.
2006-01-04 22:49:42 +00:00
41c2c27376 (powe): Simplify. 2006-01-04 22:04:52 +00:00
bea83adb93 Some s_char killings. 2006-01-04 21:40:30 +00:00
78dd01ab8e (docountry): Telex country on nat_reserve editing unconditionally.
The condition was never true due to a coding mistake.  Other edits
don't have such conditions.
2006-01-04 21:25:23 +00:00
8329b8884a (comtch): Parameter god permitted execution of any command, even when
com->c_permit disagreed.  Doesn't make sense and is inconsistent with
output of list.  Remove parameter.  The only command affected is
break.
2006-01-04 19:12:44 +00:00
0b037fc23c (explain): Part of the argument explanation was suppressed under a
weird condition (visitor or sanctuary, neither money nor capital).
Don't.
2006-01-04 18:45:42 +00:00
2e64ebbb3a (update_removewants): Clearing WUPD_WANT trashed all the other bits.
They are currently unused.
2006-01-04 18:28:50 +00:00
85bb851c04 (status): Enforce m_m_p_d only for active countries, not for deities,
visitors and such.
2006-01-04 17:58:16 +00:00
c53472e2f2 (demand_check): Slight simplification. 2006-01-04 16:48:43 +00:00
b69173eea4 (orig): Allow moving origin to another country's origin. This is a
superset of the offset command.
(offs): Redundant, underdocumented, remove.

(orig): Allow deities to reset origin to absolute 0,0.
2006-01-04 14:36:21 +00:00
c13a592bf5 (STAT_ABS): Only set by files program for country #0. Prevents offset
and origin commands from working.  Remove.
2006-01-04 14:27:10 +00:00
Ron Koenderink
4abeea5de9 (termio) [_WIN32]: Add a variable (record) to match the pointer type
for console functions.  Add error checks for console functions.
2006-01-04 03:30:04 +00:00
9101fe2bd9 Fix the previous revision. 2006-01-03 19:07:53 +00:00
de8aea7a0f (xdvisible): New.
(xditem): Use it.  This plugs all known information leaks.  It also
avoids dumping of unused records.
2006-01-03 17:07:41 +00:00
Ron Koenderink
6245d97358 (main) [_WIN32]: Fix logerror format to "lu" for GetLastError(). 2006-01-01 20:43:37 +00:00
Ron Koenderink
eec6fe6207 (service_ctrl_handler) [_WIN32]: Add static declaration.
Fix logerror format to "lu" for GetLastError().
2006-01-01 20:41:45 +00:00
Ron Koenderink
940d35a71a (tcp_listen) [_WIN32]: Move the undef NS_ALL to after include winsock2.h.
The undef is present to prevent namespace conflict the selector code.
2006-01-01 20:38:21 +00:00
Ron Koenderink
0b37d8f508 (tcp_listen) [_WIN32]: Add the WIN32 include files for accessing
the socket functions.

(tcp_listen): Add prototypes.h to verify the extern prototype.
2006-01-01 20:27:24 +00:00
Ron Koenderink
025135bad0 (loc_RunThisThread, loc_BlockThisThread) [_WIN32]:
Add void to parameter declarations.

(empth_threadMain) [_WIN32]: Add static declaration for the function.

(empth_init) [_WIN32]: Change the format "lu" for GetLastError()
in logerror() calls.
2006-01-01 20:23:51 +00:00
Ron Koenderink
8f3f239839 (ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for
ioq_makeiov() for WIN32 case so it matches source for the
ioq_makeiov().  Reorganize ioq_makebuf() to make it obvious that
ioq_makebuf() is used for WIN32 and everybody uses ioq_makeiov().
2006-01-01 20:02:09 +00:00
Ron Koenderink
ce4190caf7 (info) [_WIN32]: Add brackets to ensure the right combination of
ORs and ANDs.

(apro) [_WIN32]: Remove space to fix formatting for logerror().
Fix printing type for lhitlim in the format string for logerror() call.
2006-01-01 19:55:53 +00:00
Ron Koenderink
f1d9a5eba3 (info, apro) [_WIN32]: Correct parameter order for calls
to logerror() where GetLastError() is used.
Change the format to "lu" for printing GetLastError().
2006-01-01 19:47:46 +00:00
Ron Koenderink
6f51053336 (verify_row): Add cast to an int for a call to sizeof().
This removes a warning.
2006-01-01 19:32:52 +00:00
Ron Koenderink
8a25029c75 (disassoc) [_WIN32]: Add #ifndef _WIN32 around disassoc() as
WIN32 does not use it and does not support fork().
2006-01-01 19:29:12 +00:00
Ron Koenderink
5aba44f5f2 (min, max) [_WIN32, __GNUC__]: Add min and max macros for
mingw/gcc compile environment.  min/max are not included
in stdlib.h in mingw/gcc environment.
2006-01-01 16:02:48 +00:00
Ron Koenderink
354af75dd6 (empth_threadMain) [_WIN32]: Add include file for time(). 2006-01-01 15:56:35 +00:00
Ron Koenderink
4871a10a9b (xundump): Add the ability to support the parsing of the human
readable form.

(xucolumnheader): New function.
2006-01-01 03:44:41 +00:00
Ron Koenderink
15e40c55cd (xundump): Move the header parsing into a separate function xuheader().
Move the trailer parsing into a separate function xutrailer().

(xuheader, xutrailer): New functions.
2006-01-01 03:37:36 +00:00
Ron Koenderink
9fcb96e010 (ac_flak_dam): Fix FLAK_MAX to be last element of the array.
This fixes >8 case which was accessing one past the last element
of the array and getting an invalid value for flak max.
Broken in rev. 1.18
2005-12-31 22:37:51 +00:00
c3900f8424 (empfile, fileinit, lnd_init, lnd_postread, lnd_prewrite, nuk_init)
(nuk_postread, nuk_prewrite, pln_init, pln_postread, pln_prewrite)
(sct_postread, sct_prewrite, shp_init, shp_postread, shp_prewrite)
(ef_extend): Use void * for generic pointer parameter.
2005-12-31 12:52:18 +00:00
3db4e34ba4 (natstr): Members nat_xstart, nat_ystart are used write-only. Remove.
Users changed.
2005-12-31 10:50:24 +00:00
028a1bf3d8 (EF_RESOURCES, resources): New.
(empfile): Add it.
(pchr_ca): Use it.
2005-12-31 10:29:32 +00:00
747fb90407 Fix rev. 1.65. 2005-12-31 10:20:00 +00:00
027e9b5a34 (nat_ca): New selector dayno. 2005-12-31 10:03:06 +00:00
Ron Koenderink
27fe2e7be6 (prod): Add material limit for resource depletion to prod()
that is in place in the normal update sequence.
2005-12-31 02:42:55 +00:00
f7898f41e0 (ichr_ca): New selector melt_denom. Should have been done together
with item.h rev. 1.15.

(nuke_ca): Fix ca_table for selector types.  Broken in rev. 1.50.
2005-12-30 17:32:55 +00:00
acd2c7c2a8 (cuto, show_mission): Fix justification of coordinate output. 2005-12-30 17:28:24 +00:00
498d9fbfaa (M_SPY): Unused, remove. 2005-12-30 17:22:03 +00:00
a5b8249e98 (mkdir): Parenthesize macro parameter in expansion. 2005-12-30 17:21:42 +00:00
1969a3890a (opt_UPDATESCHED): Remove nooption UPDATESCHED. It had no effect on
the actual update, only on the update command.  Believed to be broken
since Empire2.
2005-12-29 13:38:57 +00:00
fb768e844c Fix spelling of The_Scum's name. 2005-12-29 10:26:41 +00:00