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; return 0;
} }
void* millisleep(long int t) void millisleep(long int t)
{ {
#ifdef WIN #ifdef WIN
Sleep(t); 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); int splitsign(const char* str, char * type = NULL);
void* millisleep(long int t); void millisleep(long int t);
// a b // a b
// c d // c d

View File

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

View File

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