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:
parent
ce587a3ae3
commit
138cb4d757
@ -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);
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
@ -860,9 +860,9 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
if(arguments["open"].length())
|
if(arguments["open"].length())
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cout << "Loading " << arguments["open"] << std::endl;
|
std::cout << "Loading " << arguments["open"] << std::endl;
|
||||||
#endif
|
#endif
|
||||||
if(Client::Ref().FileExists(arguments["open"]))
|
if(Client::Ref().FileExists(arguments["open"]))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -899,14 +899,14 @@ int main(int argc, char * argv[])
|
|||||||
engine->g->drawrect((engine->GetWidth()/2)-100, (engine->GetHeight()/2)-25, 200, 50, 255, 255, 255, 180);
|
engine->g->drawrect((engine->GetWidth()/2)-100, (engine->GetHeight()/2)-25, 200, 50, 255, 255, 255, 180);
|
||||||
engine->g->drawtext((engine->GetWidth()/2)-(Graphics::textwidth("Loading save...")/2), (engine->GetHeight()/2)-5, "Loading save...", style::Colour::InformationTitle.Red, style::Colour::InformationTitle.Green, style::Colour::InformationTitle.Blue, 255);
|
engine->g->drawtext((engine->GetWidth()/2)-(Graphics::textwidth("Loading save...")/2), (engine->GetHeight()/2)-5, "Loading save...", style::Colour::InformationTitle.Red, style::Colour::InformationTitle.Green, style::Colour::InformationTitle.Blue, 255);
|
||||||
|
|
||||||
#ifdef OGLI
|
#ifdef OGLI
|
||||||
blit();
|
blit();
|
||||||
#else
|
#else
|
||||||
if(engine->Scale==2)
|
if(engine->Scale==2)
|
||||||
blit2(engine->g->vid, engine->Scale);
|
blit2(engine->g->vid, engine->Scale);
|
||||||
else
|
else
|
||||||
blit(engine->g->vid);
|
blit(engine->g->vid);
|
||||||
#endif
|
#endif
|
||||||
std::string ptsaveArg = arguments["ptsave"];
|
std::string ptsaveArg = arguments["ptsave"];
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -925,9 +925,9 @@ int main(int argc, char * argv[])
|
|||||||
}
|
}
|
||||||
if(saveIdPart.length())
|
if(saveIdPart.length())
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cout << "Got Ptsave: id: " << saveIdPart << std::endl;
|
std::cout << "Got Ptsave: id: " << saveIdPart << std::endl;
|
||||||
#endif
|
#endif
|
||||||
saveId = format::StringToNumber<int>(saveIdPart);
|
saveId = format::StringToNumber<int>(saveIdPart);
|
||||||
if(!saveId)
|
if(!saveId)
|
||||||
throw std::runtime_error("Invalid Save ID");
|
throw std::runtime_error("Invalid Save ID");
|
||||||
@ -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
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user