]> git.pond.sub.org Git - empserver/commit
(upd_ship, upd_land, do_plague): Work directly on item arrays instead
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 11 Mar 2004 18:10:25 +0000 (18:10 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 11 Mar 2004 18:10:25 +0000 (18:10 +0000)
commitc922b571db33aef5ff424e5cafbdfbc147064d96
treea69e512ae779184006f625a02d2fd8162956bdac
parent979f74709b499186305156cea8cf6d725347f0f2
(upd_ship, upd_land, do_plague): Work directly on item arrays instead
of copies made by getvec().  This is safe, because the new code
changes the item array precisely when the old code writes back a
changed copy.
(starv_ships, starv_units): Replace getvec() by direct, read-only item
access.
(feed_ship, feed_land): Remove parameter vec, work with sp->shp_item[]
and lp->lnd_item[] instead.
(plague_people): Change argument type to match uncopied item arrays.
include/prototypes.h
src/lib/commands/strv.c
src/lib/update/land.c
src/lib/update/plague.c
src/lib/update/ship.c