-#ifdef INTERFACE
-CLASS(Image) EXTENDS(Item)
+#ifndef ITEM_IMAGE_H
+#define ITEM_IMAGE_H
+#include "../item.qc"
+CLASS(Image, Item)
METHOD(Image, configureImage, void(entity, string))
METHOD(Image, draw, void(entity))
METHOD(Image, toString, string(entity))
if(sz.x <= 0 || sz.y <= 0)
{
// image is broken or doesn't exist, set the size for the placeholder image
- sz_x = me.size.x;
- sz_y = me.size.y;
+ sz.x = me.size.x;
+ sz.y = me.size.y;
}
asp = sz.x / sz.y;
}