Jeck - Jean, please review for cross-platform compatibility. Fix stupid error in GameStateDeckViewer.cpp, also fix windows compile of JGE.cpp.
This commit is contained in:
@@ -507,10 +507,6 @@
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\src\JInputSystem.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\JLBFont.cpp"
|
||||
>
|
||||
@@ -757,10 +753,6 @@
|
||||
RelativePath="include\JGui.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\include\JInputSystem.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="include\JLBFont.h"
|
||||
>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <limits>
|
||||
|
||||
#include "../include/JGE.h"
|
||||
#include "../include/JApp.h"
|
||||
@@ -105,7 +106,7 @@ void JGE::HoldKey_NoRepeat(const LocalKeySym sym)
|
||||
{
|
||||
keyBuffer.push(it->second);
|
||||
if (holds.end() == holds.find(it->second))
|
||||
holds[it->second] = NAN;
|
||||
holds[it->second] = std::numeric_limits<float>::quiet_NaN();
|
||||
}
|
||||
}
|
||||
void JGE::HoldKey(const JButton sym)
|
||||
@@ -116,7 +117,7 @@ void JGE::HoldKey(const JButton sym)
|
||||
void JGE::HoldKey_NoRepeat(const JButton sym)
|
||||
{
|
||||
keyBuffer.push(sym);
|
||||
if (holds.end() == holds.find(sym)) holds[sym] = NAN;
|
||||
if (holds.end() == holds.find(sym)) holds[sym] = std::numeric_limits<float>::quiet_NaN();
|
||||
}
|
||||
void JGE::ReleaseKey(const LocalKeySym sym)
|
||||
{
|
||||
|
||||
@@ -48,8 +48,8 @@ GameStateDeckViewer::~GameStateDeckViewer() {
|
||||
SAFE_DELETE(myDeck->parent);
|
||||
SAFE_DELETE(myDeck);
|
||||
}
|
||||
if(myCollection{
|
||||
SAFE_DELETE(myCollection->parent)
|
||||
if(myCollection){
|
||||
SAFE_DELETE(myCollection->parent);
|
||||
SAFE_DELETE(myCollection);
|
||||
}
|
||||
SAFE_DELETE(filterDeck);
|
||||
@@ -221,8 +221,8 @@ void GameStateDeckViewer::End()
|
||||
SAFE_DELETE(menu);
|
||||
|
||||
resources.Release(pspIconsTexture);
|
||||
if(myCollection{
|
||||
SAFE_DELETE(myCollection->parent)
|
||||
if(myCollection){
|
||||
SAFE_DELETE(myCollection->parent);
|
||||
SAFE_DELETE(myCollection);
|
||||
}
|
||||
if(myDeck){
|
||||
|
||||
Reference in New Issue
Block a user