Skip to content

Commit

Permalink
Fixed to compile on MSVC 2013
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Jun 13, 2014
1 parent 7c46159 commit d83778c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ScriptBindings/MathScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ namespace spades {
virtual void Register(ScriptManager *manager, Phase phase) {
asIScriptEngine *eng = manager->GetEngine();
int r;
static float PiF = (float)M_PI;
static double Pi = (double)M_PI;
eng->SetDefaultNamespace("spades");
switch(phase){
case PhaseObjectType:
Expand Down Expand Up @@ -113,8 +115,6 @@ namespace spades {
manager->CheckError(r);
break;
case PhaseObjectMember:
static float PiF = (float)M_PI;
static double Pi = (double)M_PI;
r = eng->RegisterGlobalProperty("const float PiF", &PiF);
manager->CheckError(r);
r = eng->RegisterGlobalProperty("const double Pi", &Pi);
Expand Down

0 comments on commit d83778c

Please sign in to comment.