diff options
author | Filippos Karapetis | 2007-12-20 19:00:10 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-12-20 19:00:10 +0000 |
commit | 335e9da41dfe5f019c83478f8ffe95b0a8807dd4 (patch) | |
tree | fa820c30901978a5543560d87bc16517be470a1a /engines/saga/saga.h | |
parent | 0e744e491b785a8983fc5f4ab35d7ec644caa45e (diff) | |
download | scummvm-rg350-335e9da41dfe5f019c83478f8ffe95b0a8807dd4.tar.gz scummvm-rg350-335e9da41dfe5f019c83478f8ffe95b0a8807dd4.tar.bz2 scummvm-rg350-335e9da41dfe5f019c83478f8ffe95b0a8807dd4.zip |
Removed clamp() and used the common CLIP template instead
svn-id: r29927
Diffstat (limited to 'engines/saga/saga.h')
-rw-r--r-- | engines/saga/saga.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/engines/saga/saga.h b/engines/saga/saga.h index cac2b911db..a920a154c0 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -473,18 +473,6 @@ struct SaveGameHeader { char name[SAVE_TITLE_SIZE]; }; -inline int clamp(int minValue, int value, int maxValue) { - if (value <= minValue) { - return minValue; - } else { - if (value >= maxValue) { - return maxValue; - } else { - return value; - } - } -} - inline int objectTypeId(uint16 objectId) { return objectId >> OBJECT_TYPE_SHIFT; } |