summaryrefslogtreecommitdiff
path: root/src/train.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-03-24 09:16:57 -0600
committercflip <cflip@cflip.net>2022-03-24 09:16:57 -0600
commit09cc67351ec68ed37b2e664c9654f9aabd8fa33b (patch)
treeb55de41df42050729e6c5d0db93a29c1b31933ce /src/train.h
parent0d99c20d0fafcf2b86d9d33430659de76b030395 (diff)
Don't create a copy of the train graphics per vehicle
Diffstat (limited to 'src/train.h')
-rw-r--r--src/train.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/train.h b/src/train.h
index 178583f..d47818e 100644
--- a/src/train.h
+++ b/src/train.h
@@ -8,7 +8,7 @@ class Level;
class Train {
public:
explicit Train(Level& level)
- : m_sprite("res/car.png"), m_level(level) { }
+ : m_level(level) { }
void update();
void draw(Bitmap&, int, int);
@@ -25,7 +25,6 @@ private:
Train* m_next { nullptr };
Train* m_prev { nullptr };
- Bitmap m_sprite;
Level& m_level;
int x { 0 }, y { 0 };