Site  •  Wiki  •  FAQ  •  Login

[PLUGINS] Why does this crash?

<<

TassadarZeratul

User avatar

Posts: 288

Joined: June 7th, 2009, 1:00 am

Location: Behind myself

Post June 18th, 2009, 12:59 pm

[PLUGINS] Why does this crash?

Can anyone tell me why the following code crashes on game start?

  Code:
void gameStart()
{

}

void gameEnd ()
{

}

void nextFrame()
{
LOCATION* l1;
LOCATION* l2;
l1 = &location_table[1];
l2 = &location_table[2];
int mapdim;
mapdim = map_dimensions->width * 16;
if (l1->topLeftX < mapdim)
{
l2->topLeftX = l1->topLeftX + mapdim;
}
if (l1->topLeftX > mapdim)
{
l2->topLeftX = l1->topLeftX - mapdim;
}
l2->topLeftY = l1->topLeftY;
l2->bottomRightY = l1->bottomRightY;
l2->bottomRightX = l2->topLeftX + 96;
}
Image
<<

AofST

User avatar

Posts: 183

Joined: June 7th, 2009, 9:53 pm

Location: In the End of the World News

Post June 18th, 2009, 7:03 pm

Re: Why does this crash?

Add some debug shit and upload your test.txt.

And, what exactly are you trying to do?
Support my new site:
http://ideabirth.co.cc/

Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest

cron
phpBBST Software