I noticed lines in the display if I specify an image size that’s not square. Turns out, this is a regression from #36: wrong calculation in Battle::action().
While looking for the bug, I added a test making sure that Grid2D::get_pair_mut() operates on the same data as is returned by Grid2D::get() later. It’s probably a good idea to keep this one.
I noticed lines in the display if I specify an image size that’s not square. Turns out, this is a regression from #36: wrong calculation in
Battle::action()
.While looking for the bug, I added a test making sure that
Grid2D::get_pair_mut()
operates on the same data as is returned byGrid2D::get()
later. It’s probably a good idea to keep this one.