diff options
author | rtk0c <[email protected]> | 2025-05-18 11:10:09 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2025-05-18 11:10:09 -0700 |
commit | 838792fca41b9bccce260e9500d75549433bbe6a (patch) | |
tree | a6552fa2d9dbfeebc69f13d7cffca6d29b219c7c /src/sandbox.hpp | |
parent | 3af71b8aa4976d2eb6ed9eb61e9e8ac5bd6d309a (diff) |
Previously, painting didn't do it (simulation did) so there were buffer overruns
Diffstat (limited to 'src/sandbox.hpp')
-rw-r--r-- | src/sandbox.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sandbox.hpp b/src/sandbox.hpp index 400f8ec..0ae8082 100644 --- a/src/sandbox.hpp +++ b/src/sandbox.hpp @@ -47,9 +47,13 @@ struct Sandbox { void simulate_step(); + // "Get Sand" Tile& gs(int x, int y); - void set_sand(int x, int y, Tile sand); + // "Set Sand" + void ss(int x, int y, Tile sand); void shift_sand(int x, int y); + void mark_dirty(int x, int y); // UNCHECKED + // std::vector<uint32_t> to_bitmap() const; }; |