Keypad fix

Posted by Zeno on Sat 04 Feb 2006 06:09 PM — 1 posts, 5,419 views.

USA #0
As some of you remember, the keypad snippet has major issues. See this topic for information:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5310

Now I still hadn't solved it up to this point, but a friend recently sent me how to fix it when he had the same problem:
Quote:
Hey I recently had that problem surface on mine, where exit distances
were being set to a wierd number. I figured out the problem, here is
what you need to change:

in build.c
in the fold_area function where exits are saved

in the part that goes like:
if ( xit->distance > 1 || xit->pull )
{
code
}
else
{
shortened code
}

remove the ifcheck, leave the contents under the first ifcheck, remove
the else and the content after the else

any questions log onto my mud and ask em


It seems to work, but the problem is that this forces distance and pull to be saved, vastly increasing all area filesizes. If anyone would know a better way of fixing this, that would be nice.

[EDIT] Maybe it doesn't increase it a whole lot. A small area went from 13418b to 13867b. But I still don't think this is a great way to fix this....