Mercurial > mm7
diff Indoor.cpp @ 2348:4100fb5c4913
Created header files for UI cpp files
author | Grumpy7 |
---|---|
date | Wed, 09 Apr 2014 21:22:06 +0200 |
parents | 1e865e8690ba |
children | 8a49cf25fb88 |
line wrap: on
line diff
--- a/Indoor.cpp Tue Apr 08 17:39:59 2014 +0600 +++ b/Indoor.cpp Wed Apr 09 21:22:06 2014 +0200 @@ -6288,4 +6288,16 @@ pIndoor->pDoors[door_id].uTimeSinceTriggered = 15360; } return; +} + + +//----- (004088E9) -------------------------------------------------------- +int __fastcall sub_4088E9(int x1, int y1, int x2, int y2, int x3, int y3) +{ + signed int result; // eax@1 + + result = integer_sqrt(abs(x2 - x1) * abs(x2 - x1) + abs(y2 - y1) * abs(y2 - y1)); + if ( result ) + result = abs(((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / result); + return result; } \ No newline at end of file