diff options
Diffstat (limited to 'engines/gob/rxyfile.cpp')
-rw-r--r-- | engines/gob/rxyfile.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/gob/rxyfile.cpp b/engines/gob/rxyfile.cpp index 06a07bdc9c..9702dc8c7f 100644 --- a/engines/gob/rxyfile.cpp +++ b/engines/gob/rxyfile.cpp @@ -88,4 +88,15 @@ void RXYFile::load(Common::SeekableReadStream &rxy) { } } +uint16 RXYFile::add(uint16 left, uint16 top, uint16 right, uint16 bottom) { + _coords.resize(_coords.size() + 1); + + _coords.back().left = left; + _coords.back().top = top; + _coords.back().right = right; + _coords.back().bottom = bottom; + + return _coords.size() - 1; +} + } // End of namespace Gob |