diff options
author | Stefan Hacker <dd0t@users.sourceforge.net> | 2010-02-09 00:34:50 +0300 |
---|---|---|
committer | Stefan Hacker <dd0t@users.sourceforge.net> | 2010-02-09 00:35:22 +0300 |
commit | 070692d6fb62e98f5f60bf8583b95b499ad01aa3 (patch) | |
tree | 4797aba4365b88d7b44db3573048b3c1ac8b3746 /plugins/dys | |
parent | 1e36860075918e2f6c2e7c1964c467225f67893a (diff) |
Small style fixes in some plugins
Diffstat (limited to 'plugins/dys')
-rw-r--r-- | plugins/dys/dys.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/dys/dys.cpp b/plugins/dys/dys.cpp index 78ddf45ba..88c1607e5 100644 --- a/plugins/dys/dys.cpp +++ b/plugins/dys/dys.cpp @@ -170,16 +170,14 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa if (state == 0 || state == 2) return true; // Deactivate plugin + ok = calcout(ipos, rot, avatar_pos, avatar_front, avatar_top); if (ok) { - int res = calcout(ipos, rot, avatar_pos, avatar_front, avatar_top); - if (res) { - for (int i=0;i<3;++i) { - camera_pos[i] = avatar_pos[i]; - camera_front[i] = avatar_front[i]; - camera_top[i] = avatar_top[i]; - } - return res; + for (int i=0;i<3;++i) { + camera_pos[i] = avatar_pos[i]; + camera_front[i] = avatar_front[i]; + camera_top[i] = avatar_top[i]; } + return true; } return false; |