mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 23:57:32 +00:00
WINTERMUTE: Change BaseObject::getHeight() to return int32 instead of int.
This commit is contained in:
parent
889c3c9801
commit
ba17ed9490
@ -1376,7 +1376,7 @@ TDirection AdActor::angleToDirection(int angle) {
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
int AdActor::getHeight() {
|
||||
int32 AdActor::getHeight() {
|
||||
// if no current sprite is set, set some
|
||||
if (_currentSprite == nullptr) {
|
||||
if (_standSprite) {
|
||||
|
@ -47,7 +47,7 @@ class AdActor : public AdTalkHolder {
|
||||
public:
|
||||
TDirection angleToDirection(int angle);
|
||||
DECLARE_PERSISTENT(AdActor, AdTalkHolder)
|
||||
virtual int getHeight();
|
||||
virtual int32 getHeight() override;
|
||||
BaseSprite *getTalkStance(const char *stance);
|
||||
virtual void goTo(int x, int y, TDirection afterWalkDir = DI_NONE);
|
||||
BasePoint *_targetPoint;
|
||||
|
@ -1067,7 +1067,7 @@ bool AdEntity::saveAsText(BaseDynamicBuffer *buffer, int indent) {
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
int AdEntity::getHeight() {
|
||||
int32 AdEntity::getHeight() {
|
||||
if (_region && !_sprite) {
|
||||
return _region->_rect.bottom - _region->_rect.top;
|
||||
} else {
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
void setItem(const char *itemName);
|
||||
DECLARE_PERSISTENT(AdEntity, AdTalkHolder)
|
||||
void updatePosition();
|
||||
virtual int getHeight();
|
||||
virtual int32 getHeight() override;
|
||||
BaseRegion *_region;
|
||||
virtual bool saveAsText(BaseDynamicBuffer *buffer, int indent) override;
|
||||
virtual bool update();
|
||||
|
@ -859,7 +859,7 @@ bool AdObject::setFont(const char *filename) {
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
int AdObject::getHeight() {
|
||||
int32 AdObject::getHeight() {
|
||||
if (!_currentSprite) {
|
||||
return 0;
|
||||
} else {
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
bool reset();
|
||||
DECLARE_PERSISTENT(AdObject, BaseObject)
|
||||
virtual void talk(const char *text, const char *sound = nullptr, uint32 duration = 0, const char *stances = nullptr, TTextAlign align = TAL_CENTER);
|
||||
virtual int getHeight() override;
|
||||
virtual int32 getHeight() override;
|
||||
|
||||
bool setFont(const char *filename);
|
||||
virtual bool update() override;
|
||||
|
@ -1039,7 +1039,7 @@ bool BaseObject::setActiveCursor(const char *filename) {
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
int BaseObject::getHeight() {
|
||||
int32 BaseObject::getHeight() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ public:
|
||||
virtual bool handleMouseWheel(int delta);
|
||||
virtual bool handleMouse(TMouseEvent event, TMouseButton button);
|
||||
virtual bool handleKeypress(Common::Event *event, bool printable = false);
|
||||
virtual int getHeight();
|
||||
virtual int32 getHeight();
|
||||
bool setCursor(const char *filename);
|
||||
bool setActiveCursor(const char *filename);
|
||||
bool cleanup();
|
||||
|
Loading…
Reference in New Issue
Block a user