aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.h
diff options
context:
space:
mode:
authorFilippos Karapetis2007-12-20 19:00:10 +0000
committerFilippos Karapetis2007-12-20 19:00:10 +0000
commit335e9da41dfe5f019c83478f8ffe95b0a8807dd4 (patch)
treefa820c30901978a5543560d87bc16517be470a1a /engines/saga/saga.h
parent0e744e491b785a8983fc5f4ab35d7ec644caa45e (diff)
downloadscummvm-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.h12
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;
}