Minor bugfix
parent
d3195983ec
commit
de07e763c3
|
@ -113,10 +113,15 @@ fn event(state, event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn step(state) {
|
fn step(state) {
|
||||||
radialbar::set_val("shield",
|
if state.player_ship().stat_shield_strength() == 0.0 {
|
||||||
state.player_ship().current_shields()
|
radialbar::set_val("shield", 0.0);
|
||||||
/ state.player_ship().stat_shield_strength()
|
} else {
|
||||||
);
|
radialbar::set_val("shield",
|
||||||
|
state.player_ship().current_shields()
|
||||||
|
/ state.player_ship().stat_shield_strength()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
radialbar::set_val("hull",
|
radialbar::set_val("hull",
|
||||||
state.player_ship().current_hull()
|
state.player_ship().current_hull()
|
||||||
/ state.player_ship().total_hull()
|
/ state.player_ship().total_hull()
|
||||||
|
|
Loading…
Reference in New Issue