empserver/src/lib/commands
Markus Armbruster 5ec392227a (IPKG): New.
(ichr): Set IPKG packing bonus for all sectors to 1.
(move): Use it.  No functional change.
(deliver, dodistribute): Use it.  Inefficient sectors now get IPKG
instead of NPKG packing bonus, cutting civilian packing bonus from 10
to 1.

(dodistribute): Export uses the better of sector or distribution
center packing bonus.  Previously, it assumed that distribution center
WPKG packing is always best.  Which is currently true, but needlessly
breaks the abstraction.
2004-08-28 08:43:57 +00:00
..
.cvsignore List generated files and directories that CVS doesn't ignore by 2003-10-04 14:54:09 +00:00
acce.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
add.c (PRI_SMAINT, PRI_PMAINT, PRI_LMAINT, PRI_SBUILD, PRI_PBUILD, 2004-08-19 16:59:36 +00:00
anti.c (sctstr): Member sct_che encoded number of che and their target. 2004-03-04 13:49:25 +00:00
arm.c <string.h> is ISO C, no need to #if it. 2004-02-19 10:05:53 +00:00
army.c (bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without 2004-01-08 17:54:28 +00:00
assa.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
atta.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
bdes.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
best.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
boar.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
bomb.c (ship_bomb): Clarify. 2004-08-19 18:02:30 +00:00
brea.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
budg.c (calc_all): Change all parameters into out-parameters. Previously, 2004-08-19 17:33:29 +00:00
buil.c retreat.h is unused, remove it. 2004-08-27 16:46:49 +00:00
buy.c (comstr, buy, check_market, display_mark, reset, sell): Change comstr 2004-04-10 18:48:30 +00:00
capi.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
carg.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
cede.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
cens.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
chan.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
coas.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
coll.c Use plain char * instead of s_char *. 2004-08-20 08:55:23 +00:00
comm.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
cons.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
conv.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
coun.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
cuto.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
decl.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
deli.c (V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR, 2004-08-17 16:12:31 +00:00
demo.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
desi.c (do_desi): Don't complain unless FOR_REAL. Closes #923105. 2004-05-09 20:19:54 +00:00
disa.c Declare all configuration parameters in optlist.h. Remove some 2004-02-19 16:46:18 +00:00
dist.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
drop.c (V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR, 2004-08-17 16:12:31 +00:00
dump.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
echo.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
edit.c Fix missing include. 2004-05-17 06:15:31 +00:00
enab.c Declare all configuration parameters in optlist.h. Remove some 2004-02-19 16:46:18 +00:00
enli.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
expl.c (move, explore): Simplify computation of destination sector's work and 2004-08-24 07:08:59 +00:00
fina.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
flash.c (flash, wall): Long arguments could smash the stack; fix insufficient 2004-04-25 13:09:41 +00:00
flee.c (bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without 2004-01-08 17:54:28 +00:00
fly.c (V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR, 2004-08-17 16:12:31 +00:00
foll.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
forc.c New server.h for server startup, control and shutdown, i.e. stuff in 2004-02-19 19:02:30 +00:00
fort.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
fuel.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
give.c (ITEM_MAX): New, value 9999. 2004-03-05 06:34:34 +00:00
grin.c (pchrstr, MAXPRCON): Simplify variable-style storage of constituents. 2004-08-17 15:19:46 +00:00
hard.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
head.c Indentation fix. 2004-02-06 23:26:25 +00:00
hidd.c (sctstr): Member sct_che encoded number of che and their target. 2004-03-04 13:49:25 +00:00
improve.c (improve): Fix confusing diagnostics when refusing to improve defense 2004-08-24 08:23:09 +00:00
info.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
land.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
laun.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
lboard.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
ldump.c (ldump): Remove superflous casts. 2004-08-21 12:07:42 +00:00
ledg.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
leve.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
load.c (V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR, 2004-08-17 16:12:31 +00:00
look.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
lost.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
lstat.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
lten.c (mchrstr, lchrstr): Change from variable-style storage of load 2004-08-17 14:09:04 +00:00
Makefile (xdump): New command xdump (experimental). 2004-08-20 12:39:16 +00:00
map.c (map): Reject flags t' and r' unless it's a bmap command. Both used 2004-02-03 17:24:05 +00:00
marc.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
mark.c (comstr, buy, check_market, display_mark, reset, sell): Change comstr 2004-04-10 18:48:30 +00:00
mfir.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
mine.c (MINES_MAX): New. 2004-03-04 15:54:46 +00:00
miss.c (nameofitem, produce, check, fire_dchrg, send_reacting_units_home, 2004-03-03 09:39:50 +00:00
mobq.c Declare all configuration variables in optlist.h. Include that 2004-02-17 22:58:04 +00:00
mobu.c (mobupdate): Fix argument of time(). 2004-03-09 12:33:17 +00:00
mora.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
move.c (IPKG): New. 2004-08-28 08:43:57 +00:00
name.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
nati.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
navi.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
ndump.c (ldump, ndump, pdump, sdump): Remove leading spaces in deity dumps; 2004-08-17 14:44:06 +00:00
new.c (mchrstr, lchrstr): Change from variable-style storage of load 2004-08-17 14:09:04 +00:00
newe.c (new_work, do_feed, prod, newe): Factor out calculation of work into 2004-05-10 20:30:38 +00:00
news.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
nuke.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
offe.c (copy, atopi, same): Remove, use strcpy(), atoi(), strcmp(). Callers 2004-01-08 10:20:44 +00:00
offs.c (index, rindex): Obsolete BSDisms; remove. Use standard strchr() and 2004-01-08 18:15:13 +00:00
orde.c (build_ship, orde, qorde, nav_loadship, load_it, unload_it): Store 2004-04-08 19:14:09 +00:00
orig.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
para.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
path.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
payo.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
pboa.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
pdump.c (ldump, ndump, pdump, sdump): Remove leading spaces in deity dumps; 2004-08-17 14:44:06 +00:00
plan.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
play.c (play_list): Cast time_t to long for printing. 2004-03-12 06:14:52 +00:00
powe.c (gen_power): Force mtime update under Windows. From Ron Koenderink. 2004-03-17 06:40:44 +00:00
prod.c (pchrstr, MAXPRCON): Simplify variable-style storage of constituents. 2004-08-17 15:19:46 +00:00
pstat.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
rada.c (rada): Fix embarrassing coding error in previous rev. 2004-05-16 16:40:28 +00:00
rang.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
rea.c (rea): Don't use L_SET, it's ancient BSD history, just use SEEK_SET. 2004-02-29 11:35:38 +00:00
real.c (real): Support argument #' in addition to <NUMBER>' and 2004-08-17 17:12:44 +00:00
reco.c (pln_oneway_to_carrier_ok): New. 2004-08-13 20:22:03 +00:00
reje.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
rela.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
repa.c Use plain char * instead of s_char *. 2004-08-20 08:55:23 +00:00
repo.c (nameofitem, produce, check, fire_dchrg, send_reacting_units_home, 2004-03-03 09:39:50 +00:00
rese.c (comstr, buy, check_market, display_mark, reset, sell): Change comstr 2004-04-10 18:48:30 +00:00
reso.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
retr.c Clean up switch cases: proper fall through comments, no break after 2004-03-01 14:03:29 +00:00
rout.c Selector rewrite: values other than long, interpret identifiers 2004-04-02 19:02:12 +00:00
sabo.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
sail.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
sate.c Declare all configuration variables in optlist.h. Include that 2004-02-17 22:58:04 +00:00
scra.c (scra): Work directly on item arrays instead of copies made by 2004-03-09 19:32:43 +00:00
scut.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
sdump.c (ldump, ndump, pdump, sdump): Remove leading spaces in deity dumps; 2004-08-17 14:44:06 +00:00
sect.c Selector rewrite: values other than long, interpret identifiers 2004-04-02 19:02:12 +00:00
sell.c (tran_nuke, tran_plane, set, sell, move): Use military_control(). 2004-08-19 18:12:28 +00:00
set.c (tran_nuke, tran_plane, set, sell, move): Use military_control(). 2004-08-19 18:12:28 +00:00
setres.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
setsect.c (MINES_MAX): New. 2004-03-04 15:54:46 +00:00
shar.c (sct_typematch): New. Use it instead of typematch() where 2004-02-27 19:53:02 +00:00
shark.c Use plain char * instead of s_char *. 2004-08-20 08:55:23 +00:00
shi.c Replace getvec() by direct, read-only item access in some cases where 2004-03-05 10:38:58 +00:00
shoo.c (V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR, 2004-08-17 16:12:31 +00:00
show.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
shut.c New server.h for server startup, control and shutdown, i.e. stuff in 2004-02-19 19:02:30 +00:00
sinf.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
skyw.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
sona.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
spy.c Remove unused variables and such. No functional changes. 2004-03-11 22:10:19 +00:00
sstat.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
star.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
stop.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
stre.c (stre): Always report mines to deities. Closes #917911. 2004-05-09 19:57:28 +00:00
strv.c (produce_sect): Unless player->simulation, work directly on item 2004-03-11 22:00:58 +00:00
supp.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
surv.c Selector rewrite: values other than long, interpret identifiers 2004-04-02 19:02:12 +00:00
swap.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
tele.c Delete dead code, fix indentation, spelling, obvious warning 2004-02-27 20:13:28 +00:00
tend.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
terr.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
thre.c (ITEM_MAX): New, value 9999. 2004-03-05 06:34:34 +00:00
togg.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
torp.c (M_TORP_SHELLS, SHP_TORP_SHELLS): Rename. 2004-08-17 18:45:04 +00:00
trad.c Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
tran.c caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
trea.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
turn.c Declare all configuration parameters in optlist.h. Remove some 2004-02-19 16:46:18 +00:00
upda.c (weekday, daytime, daytime_range): New; replace kw_parse(). Parsing 2004-04-04 15:52:26 +00:00
upgr.c (shp_set_tech, pln_set_tech, lnd_set_tech): New, factored out of build 2004-05-16 14:19:38 +00:00
vers.c (new_work, do_feed, prod, newe): Factor out calculation of work into 2004-05-10 20:30:38 +00:00
wai.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
wing.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
wipe.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
work.c Remove unused variables and such. No functional changes. 2004-03-11 22:10:19 +00:00
xdump.c (chr_camap): Make table names differ from file empfile[] names, so 2004-08-24 18:29:09 +00:00
zdon.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00