]> git.pond.sub.org Git - empserver/commit
Use get_empobj() instead of get_empobjp() in unit_map()
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Feb 2008 07:26:04 +0000 (08:26 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 25 Feb 2008 20:50:25 +0000 (21:50 +0100)
commite7e61687f4851ea4c929a46ce9a08e4e08edca85
tree189956207b7c50e96be84926f98de0dd988cbc81
parent9a1fef87fec3007c6791f202308d75690f6bb326
Use get_empobj() instead of get_empobjp() in unit_map()

The get_FOOp() macros are generally avoided outside the update,
because direct access to the sector cache needs synchronization to be
safe.  unit_map() didn't access the cache directly until it was
converted from get_ship() & friends to get_empobjp() in commit
fec9878c.  Switching to get_empobj() reverts the change to direct
access while keeping the simplification.
src/lib/subs/maps.c