fix GUI issues
This commit is contained in:
parent
0b54d704f2
commit
679c19aea5
|
@ -105,7 +105,9 @@ void vessel::update()
|
|||
ss << sys.reactor->get_total(sim::reactor::rod::val_t::N_FAST) << " mol\n\n\n";
|
||||
ss << show( crod_min * 100 ) << " %\n";
|
||||
ss << show( crod_max * 100 ) << " %\n";
|
||||
ss << show( sys.reactor->rod_speed * 100, 1e-5 ) << " %/s\n";
|
||||
ss << show( sys.reactor->rod_speed * 100, 1e6 ) << " %/s";
|
||||
if(sys.reactor->rod_speed == 0) ss << " (Stopped)";
|
||||
ss << "\n";
|
||||
|
||||
rmesh.load_text(ss.str().c_str(), 0.04);
|
||||
mesh2.bind();
|
||||
|
|
|
@ -57,6 +57,11 @@ void reactor::update(double secs)
|
|||
|
||||
update_interactions(rods_lookup, secs / 2);
|
||||
|
||||
if(std::abs(rod_speed) < 1e-6)
|
||||
{
|
||||
rod_speed = 0;
|
||||
}
|
||||
|
||||
if(rod_speed != 0)
|
||||
{
|
||||
update_selected(secs);
|
||||
|
|
Loading…
Reference in New Issue