From 77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 12:59:52 +0300 Subject: move virtual member calls from flooritem constuctor into postInit. --- src/flooritem.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/flooritem.h') diff --git a/src/flooritem.h b/src/flooritem.h index 1eecf3aef..612dda22c 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -42,18 +42,16 @@ class FloorItem final : public ActorSprite * @param itemId the item ID * @param x the x position in tiles * @param y the y position in tiles - * @param map the map this item is on * @param amount the item amount * @param color the item color - * @param subX the x pixel relative position - * @param subY the y pixel relative position */ FloorItem(const int id, const int itemId, const int x, const int y, - Map *const map, const int amount, const unsigned char color, - int subX, int subY); + const int amount, const unsigned char color); A_DELETE_COPY(FloorItem) + void postInit(Map *const map, int subX, int subY); + Type getType() const override A_WARN_UNUSED { return FLOOR_ITEM; } -- cgit v1.2.3-60-g2f50