aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-03 05:39:30 +0200
committerEinar Johan Trøan Sømåen2012-07-03 05:39:30 +0200
commit13b16c1dc94df99e02a9ff6800d812e73c2fc922 (patch)
treeb5ab96485f71f68e405798954c6e82399143eab1 /engines
parent2f90dd76f99a827ce1bf5ea8ee6d653396756e1b (diff)
downloadscummvm-rg350-13b16c1dc94df99e02a9ff6800d812e73c2fc922.tar.gz
scummvm-rg350-13b16c1dc94df99e02a9ff6800d812e73c2fc922.tar.bz2
scummvm-rg350-13b16c1dc94df99e02a9ff6800d812e73c2fc922.zip
WINTERMUTE: Rename FuncName->funcName in SXMath
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/scriptables/SXMath.cpp24
-rw-r--r--engines/wintermute/Base/scriptables/SXMath.h4
2 files changed, 14 insertions, 14 deletions
diff --git a/engines/wintermute/Base/scriptables/SXMath.cpp b/engines/wintermute/Base/scriptables/SXMath.cpp
index 92e6823534..b5a696ece2 100644
--- a/engines/wintermute/Base/scriptables/SXMath.cpp
+++ b/engines/wintermute/Base/scriptables/SXMath.cpp
@@ -120,7 +120,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Cos") == 0) {
stack->correctParams(1);
- stack->pushFloat(cos(DegreeToRadian(stack->pop()->getFloat())));
+ stack->pushFloat(cos(degreeToRadian(stack->pop()->getFloat())));
return S_OK;
}
@@ -129,7 +129,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Cosh") == 0) {
stack->correctParams(1);
- stack->pushFloat(cosh(DegreeToRadian(stack->pop()->getFloat())));
+ stack->pushFloat(cosh(degreeToRadian(stack->pop()->getFloat())));
return S_OK;
}
@@ -186,7 +186,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Sin") == 0) {
stack->correctParams(1);
- stack->pushFloat(sin(DegreeToRadian(stack->pop()->getFloat())));
+ stack->pushFloat(sin(degreeToRadian(stack->pop()->getFloat())));
return S_OK;
}
@@ -195,7 +195,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Sinh") == 0) {
stack->correctParams(1);
- stack->pushFloat(sinh(DegreeToRadian(stack->pop()->getFloat())));
+ stack->pushFloat(sinh(degreeToRadian(stack->pop()->getFloat())));
return S_OK;
}
@@ -204,7 +204,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Tan") == 0) {
stack->correctParams(1);
- stack->pushFloat(tan(DegreeToRadian(stack->pop()->getFloat())));
+ stack->pushFloat(tan(degreeToRadian(stack->pop()->getFloat())));
return S_OK;
}
@@ -213,7 +213,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Tanh") == 0) {
stack->correctParams(1);
- stack->pushFloat(tanh(DegreeToRadian(stack->pop()->getFloat())));
+ stack->pushFloat(tanh(degreeToRadian(stack->pop()->getFloat())));
return S_OK;
}
@@ -231,7 +231,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "DegToRad") == 0) {
stack->correctParams(1);
- stack->pushFloat(DegreeToRadian(stack->pop()->getFloat()));
+ stack->pushFloat(degreeToRadian(stack->pop()->getFloat()));
return S_OK;
}
@@ -240,7 +240,7 @@ HRESULT CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *this
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "RadToDeg") == 0) {
stack->correctParams(1);
- stack->pushFloat(RadianToDegree(stack->pop()->getFloat()));
+ stack->pushFloat(radianToDegree(stack->pop()->getFloat()));
return S_OK;
}
@@ -273,14 +273,14 @@ CScValue *CSXMath::scGetProperty(const char *name) {
//////////////////////////////////////////////////////////////////////////
-double CSXMath::DegreeToRadian(double Value) {
- return Value * (PI / 180.0f);
+double CSXMath::degreeToRadian(double value) {
+ return value * (PI / 180.0f);
}
//////////////////////////////////////////////////////////////////////////
-double CSXMath::RadianToDegree(double Value) {
- return Value * (180.0f / PI);
+double CSXMath::radianToDegree(double value) {
+ return value * (180.0f / PI);
}
diff --git a/engines/wintermute/Base/scriptables/SXMath.h b/engines/wintermute/Base/scriptables/SXMath.h
index ac3dc45115..704b93a897 100644
--- a/engines/wintermute/Base/scriptables/SXMath.h
+++ b/engines/wintermute/Base/scriptables/SXMath.h
@@ -43,8 +43,8 @@ public:
virtual HRESULT scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
private:
- double DegreeToRadian(double Value);
- double RadianToDegree(double Value);
+ double degreeToRadian(double Value);
+ double radianToDegree(double Value);
};