chiark / gitweb /
hidden: Use Area
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2021 00:53:56 +0000 (00:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 12 Feb 2021 01:38:24 +0000 (01:38 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs

index e47f48814007569c735325b6cabd8610282b00a5..a43040d2e6c8b373096a32f963038c8e508fbac4 100644 (file)
@@ -26,7 +26,7 @@ pub struct PieceOccult {
 
 #[derive(Clone,Debug,Serialize,Deserialize)]
 pub struct Occultation {
-  region: [Pos; 2], // automatically affect pieces here
+  region: Area, // automatically affect pieces here
   occulter: PieceId, // kept in synch with PieceOccult::active
   views: Vec<OccultView>,
   #[serde(default)] defview: OccultationKind,