From b4761e47ddac23f7a52b714e2e0631dda1708a79 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 20 Oct 2013 09:54:09 -0400 Subject: [PATCH 1/2] fix Sconscript --- .gitignore | 1 + SConscript | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 55204845b..41cd57805 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,7 @@ Makefile.me *.tlog *.lib *.ipch +*.ilk *.log *.lastbuildstate *.unsuccessfulbuild diff --git a/SConscript b/SConscript index 38a6b25a0..e7833cc6e 100755 --- a/SConscript +++ b/SConscript @@ -135,9 +135,9 @@ if((not GetOption('lin')) and (not GetOption('win')) and (not GetOption('rpi')) # if the platform is windows switch to a mingw toolset, use the default otherwise if(GetOption('win')): - env = Environment(tools = ['mingw']) + env = Environment(tools = ['mingw'], ENV = os.environ) else: - env = Environment(tools = ['default']) + env = Environment(tools = ['default'], ENV = os.environ) if(GetOption("copy_env")): lstvar=["CC","CXX","LD","CFLAGS"] From dd73a7244f49de54ccd35a7cf1fdafd1a557e505 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 20 Oct 2013 10:37:28 -0400 Subject: [PATCH 2/2] reduce / prevent PROT in fusion even more --- src/simulation/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 76c0830a6..60ca1f7d3 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2216,7 +2216,7 @@ int Simulation::try_move(int i, int x, int y, int nx, int ny) part_change_type(i, x, y, PT_ELEC); parts[i].ctype = 0; } - else if ((r&0xFF) == PT_H2 && pv[y/CELL][x/CELL] < 45.0f) + else if ((r&0xFF) == PT_H2 && pv[y/CELL][x/CELL] < 45.0f && parts[i].temp < 3000) { part_change_type(i, x, y, PT_PROT); parts[i].ctype = 0;