exception bluescreens print what the exception was, some (probably unnecessary) fixes to fusion that were never merged in, and probably a compiling fix

This commit is contained in:
jacob1 2013-12-03 22:05:20 -05:00
parent ce587a3ae3
commit 138cb4d757
4 changed files with 15 additions and 15 deletions

View File

@ -657,7 +657,7 @@ int splitsign(const char* str, char * type)
return 0;
}
void* millisleep(long int t)
void millisleep(long int t)
{
#ifdef WIN
Sleep(t);

View File

@ -88,7 +88,7 @@ void membwand(void * dest, void * src, size_t destsize, size_t srcsize);
int splitsign(const char* str, char * type = NULL);
void* millisleep(long int t);
void millisleep(long int t);
// a b
// c d

View File

@ -851,7 +851,7 @@ int main(int argc, char * argv[])
#endif
GameController * gameController = NULL;
#ifndef DEBUG
#if !defined(DEBUG) && !defined(_DEBUG)
try {
#endif
@ -959,11 +959,11 @@ int main(int argc, char * argv[])
SaveWindowPosition();
#endif
#ifndef DEBUG
#if !defined(DEBUG) && !defined(_DEBUG)
}
catch(...)
catch(exception& e)
{
BlueScreen("Unhandled exception");
BlueScreen(e.what());
}
#endif

View File

@ -96,7 +96,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
}
break;
case PT_NBLE:
if (parts[i].life<=1&&parts[i].tmp!=1)
if (parts[i].life<=1 && parts[i].temp<5273.15f)
{
parts[i].life = rand()%150+50;
sim->part_change_type(i,x,y,PT_PLSM);
@ -302,7 +302,7 @@ int Element_SPRK::update(UPDATE_FUNC_ARGS)
goto conduct;
continue;
case PT_NBLE:
if (parts[r>>8].tmp != 1)
if (parts[i].temp < 5273.15f)
goto conduct;
continue;
case PT_PSCN: