mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 12:51:29 -08:00
bug fix - used sector instead of quadrant as index in srs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use crate::model::{Galaxy, Pos, SectorStatus, COURSES};
|
||||
|
||||
pub fn short_range_scan(model: &Galaxy) {
|
||||
let quadrant = &model.quadrants[model.enterprise.sector.as_index()];
|
||||
let quadrant = &model.quadrants[model.enterprise.quadrant.as_index()];
|
||||
|
||||
println!("{:-^33}", "");
|
||||
for y in 0..=7 {
|
||||
|
||||
Reference in New Issue
Block a user