]> git.pond.sub.org Git - empserver/commit
Replace broken GCFx(), GCFy() by sctoff()
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Aug 2008 18:04:10 +0000 (14:04 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 27 Aug 2008 01:42:32 +0000 (21:42 -0400)
commitc89f8172ec9406b221712d119e33b2c360626c4c
treedf4ba6534a34fb0f4760bb733fc9228973f8475a
parent6316c4185a1308d44fb57bb3b5a259f23fee4918
Replace broken GCFx(), GCFy() by sctoff()

GCFx() and GCFy() pointlessly duplicate sctoff(), and don't work when
the argument is less than -WORLD_X or -WORLD_Y, respectively.  With
current code, this happens only for impractically tiny worlds:
emp_setbitmap() writes to bitmap[] out of bounds, and smashes the
heap.
src/lib/subs/getbit.c