[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3188 - trunk/pingus/src
From: |
jsalmon3 |
Subject: |
[Pingus-CVS] r3188 - trunk/pingus/src |
Date: |
Wed, 19 Sep 2007 18:32:15 +0200 |
Author: jsalmon3
Date: 2007-09-19 18:32:08 +0200 (Wed, 19 Sep 2007)
New Revision: 3188
Modified:
trunk/pingus/src/graphic_context_state.cpp
trunk/pingus/src/system.cpp
Log:
Fixed compile errors
Modified: trunk/pingus/src/graphic_context_state.cpp
===================================================================
--- trunk/pingus/src/graphic_context_state.cpp 2007-09-19 16:05:24 UTC (rev
3187)
+++ trunk/pingus/src/graphic_context_state.cpp 2007-09-19 16:32:08 UTC (rev
3188)
@@ -18,6 +18,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <math.h>
+#include "math.hpp"
#include "gui/display.hpp"
#include "graphic_context_state.hpp"
@@ -227,8 +228,8 @@
Vector2f pos(float(pos_.x - impl->rect.left),
float(pos_.y - impl->rect.top));
- float sa = (float)sin(-impl->rotation/180.0f*M_PI);
- float ca = (float)cos(-impl->rotation/180.0f*M_PI);
+ float sa = (float)sin(-impl->rotation/180.0f*Math::pi);
+ float ca = (float)cos(-impl->rotation/180.0f*Math::pi);
float dx = pos.x - (float)get_width()/2;
float dy = pos.y - (float)get_height()/2;
Modified: trunk/pingus/src/system.cpp
===================================================================
--- trunk/pingus/src/system.cpp 2007-09-19 16:05:24 UTC (rev 3187)
+++ trunk/pingus/src/system.cpp 2007-09-19 16:32:08 UTC (rev 3188)
@@ -41,6 +41,7 @@
#define F_OK 0
#endif
+#include <config.h>
#include <iostream>
#include <sstream>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3188 - trunk/pingus/src,
jsalmon3 <=