diff options
Diffstat (limited to 'engines/mads/mads.cpp')
| -rw-r--r-- | engines/mads/mads.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index 781fd7d01d..d6cd901a4c 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -107,4 +107,8 @@ int MADSEngine::getRandomNumber(int maxNumber) {  	return _randomSource.getRandomNumber(maxNumber);  } +int MADSEngine::hypotenuse(int xv, int yv) { +	return (int)sqrt((double)(xv * xv + yv * yv)); +} +  } // End of namespace MADS | 
