mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	fixed the deprecated-copy warning
This commit is contained in:
		| @@ -273,6 +273,7 @@ struct lwalker { | |||||||
|   int spin; |   int spin; | ||||||
|   lwalker(crystal_structure& cs) : cs(cs) {} |   lwalker(crystal_structure& cs) : cs(cs) {} | ||||||
|   void operator = (const lwalker& x) { id = x.id; spin = x.spin; } |   void operator = (const lwalker& x) { id = x.id; spin = x.spin; } | ||||||
|  |   constexpr lwalker(const lwalker& l) : cs(l.cs), id(l.id), spin(l.spin) {} | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
| lwalker operator +(lwalker a, int v) { a.spin = gmod(a.spin + v, a.cs.dir); return a; } | lwalker operator +(lwalker a, int v) { a.spin = gmod(a.spin + v, a.cs.dir); return a; } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue