Seg Fault in Scrolling code help

I tried adapting the scrolling code posted earlier but
everytime I run it I just get a Seg fault when it’s
time to draw the mountain scenery and begin the game.
I included the source. The scrolling code starts
around line 480 to 497. Any help is greatly
appreciated. Once
this scrolling is done, the game is playable and just
about demo material. Like I said, thanks in advance,
to anyone who can take a look! Thanks again. As it is
right now, the site moves with the keys, and gets
re-drawn left or right/ up or down I need the site to
stay put in the center, and move the background left
and right/ up and down.__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!

-------------- next part --------------
A non-text attachment was scrubbed…
Name: loh.cpp
Type: application/x-unknown
Size: 15017 bytes
Desc: loh.cpp