diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-02-10 19:47:06 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-02-10 19:47:06 +0300 |
commit | 554763e5c36594d5e4752a9ab1c2e6dee5fcc9f9 (patch) | |
tree | b69d1816f0e4232d67e230b1ecf5320a0948b137 /plugins/l4d | |
parent | ed7c412a19ec5371902ec529c93e653377f3b393 (diff) |
Indenting run
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1513 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'plugins/l4d')
-rw-r--r-- | plugins/l4d/l4d.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/l4d/l4d.cpp b/plugins/l4d/l4d.cpp index 2a368285e..d790befe0 100644 --- a/plugins/l4d/l4d.cpp +++ b/plugins/l4d/l4d.cpp @@ -65,29 +65,29 @@ static void about(HWND h) { }
static bool calcout(float *pos, float *rot, float *opos, float *front, float *top) {
- top[0] = 0.0f;
- top[1] = 0.0f;
- top[2] = 0.0f;
+ top[0] = 0.0f;
+ top[1] = 0.0f;
+ top[2] = 0.0f;
- float h = rot[0];
- float v = rot[1];
+ float h = rot[0];
+ float v = rot[1];
- if ((v < -180.0f) || (v > 180.0f) || (h < -180.0f) || (h > 180.0f))
- return false;
+ if ((v < -180.0f) || (v > 180.0f) || (h < -180.0f) || (h > 180.0f))
+ return false;
- h *= static_cast<float>(M_PI / 180.0f);
- v *= static_cast<float>(M_PI / 180.0f);
+ h *= static_cast<float>(M_PI / 180.0f);
+ v *= static_cast<float>(M_PI / 180.0f);
- // Seems L4D is in inches. INCHES?!?
- opos[0] = pos[0] / 39.37f;
- opos[1] = pos[2] / 39.37f;
- opos[2] = pos[1] / 39.37f;
+ // Seems L4D is in inches. INCHES?!?
+ opos[0] = pos[0] / 39.37f;
+ opos[1] = pos[2] / 39.37f;
+ opos[2] = pos[1] / 39.37f;
- front[0] = cos(v);
- front[1] = 0.0f;
- front[2] = sin(v);
+ front[0] = cos(v);
+ front[1] = 0.0f;
+ front[2] = sin(v);
- return true;
+ return true;
}
static int trylock() {
@@ -115,7 +115,7 @@ static int trylock() { float opos[3], top[3], front[3];
bool ok = peekProc(posptr, pos, 12) &&
- peekProc(rotptr, rot, 12);
+ peekProc(rotptr, rot, 12);
if (ok)
return calcout(pos, rot, opos, top, front);
|