empserver/include
Markus Armbruster fa5fa4abcc Don't store RAILWAYS track in sectors
Storing track in sectors is problematic, because we need to update
adjacent sectors when updating a sector in a way that changes its
capability to extend railway into its neighbors.  This invalidates
cached adjacent sectors, and calling code may not be prepared for
that.  Specifically, bridge building caches the bridge head, and
writes it back later, wiping out the track update.

Replace struct sctstr member sct_track by new sct_rail_track().  Make
selector track virtual.  Remove the code to keep sct_track up-to-date:
set_railway(), update_railway().

Unfortunately, this causes cyclic dependencies between link libraries:
the virtual selector needs to be referenced from src/lib/global/nsc.c,
and it needs to reference stuff from src/lib/common/file.c.  Hack
around it in Make.mk for now.
2008-05-07 10:33:41 +02:00
..
budg.h Update copyright notice 2008-01-19 10:15:37 +01:00
com.h Update copyright notice 2008-01-19 10:15:37 +01:00
combat.h Update copyright notice 2008-01-19 10:15:37 +01:00
commands.h Update copyright notice 2008-01-19 10:15:37 +01:00
commodity.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
damage.h Update copyright notice 2008-01-19 10:15:37 +01:00
distribute.h Update copyright notice 2008-01-19 10:15:37 +01:00
econfig-spec.h Rebase of Hvy Metal I final version 2008-05-07 10:33:41 +02:00
empio.h Update copyright notice 2008-01-19 10:15:37 +01:00
empobj.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
empthread.h Update copyright notice 2008-01-19 10:15:37 +01:00
file.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
game.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
ioqueue.h Update copyright notice 2008-01-19 10:15:37 +01:00
item.h Replace some typedef names by enum tags. 2008-03-14 20:25:42 +01:00
journal.h Journal the PRNG seed 2008-03-17 19:08:34 +01:00
land.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
loan.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
lost.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
lwp.h Semaphores are no longer used, remove: 2007-02-08 12:29:16 +00:00
map.h Get rid of src/lib/gen/copy.c 2008-02-03 07:44:20 +01:00
match.h Update copyright notice 2008-01-19 10:15:37 +01:00
misc.h Move oops actions from log.c up to application 2008-04-25 22:06:13 +02:00
mission.h Update copyright notice 2008-01-19 10:15:37 +01:00
nat.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
news.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
nsc.h Pass struct natstr * instead of natid to virtual selectors 2008-03-26 22:13:21 +01:00
nuke.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
optlist.h Update known contributors comments 2008-03-14 20:25:44 +01:00
path.h Update copyright notice 2008-01-19 10:15:37 +01:00
plague.h Update copyright notice 2008-01-19 10:15:37 +01:00
plane.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
player.h Update copyright notice 2008-01-19 10:15:37 +01:00
power.h Update copyright notice 2008-01-19 10:15:37 +01:00
product.h Update copyright notice 2008-01-19 10:15:37 +01:00
proto.h Update copyright notice 2008-01-19 10:15:37 +01:00
prototypes.h Don't store RAILWAYS track in sectors 2008-05-07 10:33:41 +02:00
queue.h New emp_searchque() 2008-03-14 21:00:29 +01:00
retreat.h Update copyright notice 2008-01-19 10:15:37 +01:00
sect.h Don't store RAILWAYS track in sectors 2008-05-07 10:33:41 +02:00
server.h New post_crash_dump_hook 2008-04-25 22:12:22 +02:00
service.h Update copyright notice 2008-01-19 10:15:37 +01:00
ship.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
tel.h Update copyright notice 2008-01-19 10:15:37 +01:00
trade.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
treaty.h Add sequence numbers to game state (experimental) 2008-05-07 10:33:41 +02:00
types.h Update copyright notice 2008-01-19 10:15:37 +01:00
unit.h Update copyright notice 2008-01-19 10:15:37 +01:00
update.h Update copyright notice 2008-01-19 10:15:37 +01:00
version.h Update copyright notice 2008-01-19 10:15:37 +01:00
xdump.h Implement human-readable dialect for xdump 2008-03-14 20:25:42 +01:00
xy.h Simplify XNORM() and YNORM() 2008-03-26 22:11:23 +01:00