3e400c018c
Update copyright notice.
2006-01-05 13:36:57 +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
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
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
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
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
3db4e34ba4
(natstr): Members nat_xstart, nat_ystart are used write-only. Remove.
...
Users changed.
2005-12-31 10:50:24 +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
acd2c7c2a8
(cuto, show_mission): Fix justification of coordinate output.
2005-12-30 17:28:24 +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
aff6cfcafe
src/lib/commands/sona.c rev. 1.6 changed first argument of
...
line_of_sight() to char *. The changeset failed to change callers.
Fix.
2005-12-28 22:43:39 +00:00
24a07cd249
player.h rev. 1.9 changed struct player member argp to char *. The
...
changeset failed to adapt some s_char * operands. Fix.
2005-12-28 22:21:42 +00:00
0d267e0b24
There's no reason to include <time.h> in empio.h, except it's missing
...
in a couple of other files. Include it where it's needed.
2005-12-28 21:25:39 +00:00
3aebb68ee7
Include config.h.
2005-12-27 18:04:19 +00:00
ade510f787
Turn options into ordinary econfig keys:
...
(configkeys): Add options.
(KM_OPTION): New.
(vers): Find options in configkeys[] instead of Options[].
(xdump): Remove xdump opt syntax.
(xdopt): Remove.
(emp_config, print_config): Remove option special case.
(option_list, Options, setoption): Remove.
2005-12-25 10:32:50 +00:00
cc0c3e4f3f
(drop): A mining mission targeting land called pln_dropoff() instead
...
of pln_mine(). pln_dropoff() happens to do pretty much the right
thing, but...
(pln_mine): Refuse to mine land.
2005-12-23 19:37:52 +00:00
3bbc91876f
(START_CASH, start_cash): Replace START_CASH by new econfig key
...
start_cash.
2005-12-23 11:16:23 +00:00
8e16ae9e43
Remove superflous #include "options.h".
2005-12-23 11:04:56 +00:00
ea93842927
(pln_equip): New mission argument 'm' for mining. 'd' is now for
...
cargo drops only. Callers changed.
2005-12-22 19:48:33 +00:00
a98626df2d
Replace the build process. The new one requires GNU Make, Autoconf
...
and Autoconf macros that come with Automake. It supports multiple
separate builds of the same source tree, and updates dependencies
automatically. Targets info, html, install, install-html, uninstall
and dist are not yet implemented.
System configuration is now automatic. Previously, you had to choose
one of several canned system configurations, defined in Make.sysdefs.
Currently, system configuration always uses UCONTEXT for LWP, and
chooses LWP only if its requirements are met.
Feature configuration changed: instead of editing build.conf (further
processed by doconfig), you pass arguments to configure. Note that
build.conf settings that can be overridden in econfig have no
configure equivalent; just edit econfig instead.
Because generated headers complicate makefiles, fold gamesdef.h into
its users: path.c and ipglob.c become path.c.in and ipglob.c.in,
constants.c, vers.c, options.h simply hardcode defaults (most of them
are run-time configurable).
Call the client empire instead of emp_client. This matches what the
old standalone build did.
2005-12-20 20:25:35 +00:00
Ron Koenderink
cdfb94dc1f
(nati, player_coms): Add ability for deities to request a nation report for any country.
...
Closes #1083167 .
2005-12-20 17:06:47 +00:00
Ron Koenderink
f3303bce1e
(capi): Do not check capital location if the country
...
is has NF_SACKED set.
2005-12-19 01:52:13 +00:00
Ron Koenderink
7944db242c
(nati): Fix the grammer for No capital output.
2005-12-18 15:43:56 +00:00
Ron Koenderink
c2ee177256
(zdon): Do not allow a country that is in-flux to request an update.
...
Closes #1025597 .
2005-12-17 20:27:08 +00:00
Ron Koenderink
5ffef496ea
(coun_list, repo_list, nati): Replace in-flux determination code with influx().
...
(influx): New.
2005-12-17 20:18:54 +00:00
Ron Koenderink
d1e2d91961
(repo_list): Remove unreachable state (STAT_NORM | STAT_SANCT).
2005-12-17 19:55:52 +00:00
Ron Koenderink
4799984997
(gen_power): Do not include land units with spy capability in the
...
land unit count. Closes #910398 .
2005-12-17 12:41:39 +00:00
e29f288289
Remove silly superflous parenthesis.
2005-12-03 21:14:26 +00:00
e59c4bcfd0
(peek): Old owner is not hidden, remove column.
2005-12-03 21:04:00 +00:00
8f7389e404
(peek, empmod): Remove obsolete command hidden.
2005-12-03 21:02:31 +00:00
2517931b12
(plane_bomb, land_bomb): Apply collateral damage to target sector
...
instead of where the targeted plane/land unit is after the attack.
Different if the target retreats. Can't happen for planes. Reported
by Greg German.
2005-11-29 17:54:45 +00:00
f5c81fe39e
Fix bad line breaks.
2005-11-29 17:34:42 +00:00
Ron Koenderink
9a296c4be3
(show): Return syntax error for invalid qualifier.
2005-11-23 23:51:28 +00:00
Ron Koenderink
1de48e53da
(tend): Send a bulletin to the ally when tending items to an ally.
...
Closes #929398 .
2005-11-22 19:28:48 +00:00
Ron Koenderink
e8746e9af0
(tend_land): Allow spy units to be tended to and from sub
...
with no land unit carrying capability. Closes #1313537 .
2005-11-20 18:17:05 +00:00
fe1a3e57c6
(multifire): When an argument is bad, do not loop prompting, just
...
fail. That's what the vast majority of commands do.
2005-11-19 15:38:53 +00:00
ad10ee5649
(laun, launch_as, launch_missile, launch_sat): When an argument is
...
bad, do not loop prompting, just fail. That's what the vast majority
of commands do.
(launch_as, launch_missile, launch_sat): Don't zap the target
argument. If the target is given as argument, launch all missiles at
that target. Previously, missiles after the first prompted for
another target.
2005-11-19 15:29:12 +00:00
011fa326d7
(buil): When an argument is bad, do not offer to list types, just
...
print how to list them.
(buil): When an argument is bad, do not loop prompting, just
fail. That's what the vast majority of commands do.
2005-11-19 15:15:49 +00:00
Ron Koenderink
4e317e3999
(buil): Remove N_NEUT check. It should have been
...
removed when the opt_NEUTRON was removed.
2005-11-19 12:17:30 +00:00
f3fb9c3c4e
(cons_choose): When an argument is bad, do not loop prompting, just
...
fail. That's what the vast majority of commands do.
2005-11-19 11:27:03 +00:00
69582d0d15
(add): When an argument is bad, do not loop prompting, just fail.
...
That's what the vast majority of commands do.
(add): Do not silently truncate country number argument.
(add): Diagnostics were confusing because they lacked context.
2005-11-19 10:54:05 +00:00
Ron Koenderink
7b94794365
(cens, desi, dump, do_desi, doland, file_sct_init, grow_continents)
...
(grow_islands, set_coastal, update_coastal_flag, coast_sea_to_land)
(coast_land_to_sea): Determine sct_coastal flag when the sector type
is set. Old method only updated the sct_coastal flag when doing
cens() or a dump(). Other uses of sct_coastal could get stale values,
including selector coastal. Rework set_coastal() into NEW functions
update_coastal_flag(), coast_sea_to_land(), coast_land_to_sea() and
set_coastal(). Fix a bug where the deity designation would not
properly set the coastal flag. Fix a bug where the one sector lake
would not properly compute coastal flag. Fix a bug that makes
fairland treat the last sector it adds to an island as non-coastal.
2005-11-17 03:21:32 +00:00
Ron Koenderink
2ce7ab4178
(add): Convert bridge spans or bridge towers into sea sectors instead the
...
wilderness sectors when wiping sectors.
2005-11-16 13:11:54 +00:00
Ron Koenderink
6b434ee376
(cens, cens_hdr): Print the actual old_owner instead of just a star
...
when different. This is change the format for the census output.
2005-11-15 23:44:38 +00:00
Ron Koenderink
a2798857cf
(fuel, load, prod, max_population, shp_nav_one_sector,
...
nav_loadship, upd_buildeff): Identify BIG_CITY
(IS_BIG_CITY) by using packing type of UPKG instead of
opt_BIG_CITY and sector type of SCT_CAPITAL.
2005-11-14 13:52:12 +00:00
Ron Koenderink
fdcbb5912d
(budg): Create the capital/city name from the d_name field instead of
...
hard coding the strings.
(plurize): New.
2005-11-13 21:23:44 +00:00
Ron Koenderink
2f1b7cd2a3
(opt_NO_LCMS, opt_NO_HCMS, opt_NO_OIL, Options,
...
buil, show_bridge, show_tower, nullify_objects):
Remove NO_LCMS, NO_HCMS, and NO_OIL options, not used.
Functionality can be emulated by modifiying the characteristics files.
2005-11-13 16:39:27 +00:00