From 6ce8e26ecba668578b307ca7039a9af9e86310a7 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 24 Mar 2022 09:17:45 -0600 Subject: Create new trains on right click instead of moving the existing train --- src/level.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/level.h') diff --git a/src/level.h b/src/level.h index 39b5efd..cfe40e8 100644 --- a/src/level.h +++ b/src/level.h @@ -38,7 +38,7 @@ public: void update(); void draw(Bitmap& bitmap, int xo, int yo); - void addVehicle(Train&); + Train* addVehicle(); void toggleTile(int x, int y); void save() const; @@ -48,7 +48,7 @@ private: int m_width, m_height; uint8_t* m_tiles; - std::vector m_vehicles; + std::vector m_vehicles; }; TrackDirection ChooseDirection(Level& level, int x, int y); \ No newline at end of file -- cgit v1.2.3