push2: vector, not map

This commit is contained in:
Paul Davis 2022-08-27 16:03:01 -06:00
parent 6627d24c2b
commit 06abdb4c4e
3 changed files with 10 additions and 7 deletions

View file

@ -38,10 +38,12 @@ Push2::build_maps ()
boost::shared_ptr<Pad> pad;
_xy_pad_map.assign (64, boost::shared_ptr<Pad>());
#define MAKE_PAD(x,y,nn) \
pad.reset (new Pad ((x), (y), (nn))); \
_nn_pad_map.insert (std::make_pair (pad->extra(), pad)); \
_xy_pad_map.insert (std::make_pair (y * 8 + x, pad));
_xy_pad_map[y * 8 + x] = pad;
MAKE_PAD (0, 0, 92);
MAKE_PAD (0, 1, 93);