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>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\src\JInputSystem.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="src\JLBFont.cpp"
|
RelativePath="src\JLBFont.cpp"
|
||||||
>
|
>
|
||||||
@@ -757,10 +753,6 @@
|
|||||||
RelativePath="include\JGui.h"
|
RelativePath="include\JGui.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\include\JInputSystem.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="include\JLBFont.h"
|
RelativePath="include\JLBFont.h"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
#include "../include/JGE.h"
|
#include "../include/JGE.h"
|
||||||
#include "../include/JApp.h"
|
#include "../include/JApp.h"
|
||||||
@@ -105,7 +106,7 @@ void JGE::HoldKey_NoRepeat(const LocalKeySym sym)
|
|||||||
{
|
{
|
||||||
keyBuffer.push(it->second);
|
keyBuffer.push(it->second);
|
||||||
if (holds.end() == holds.find(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)
|
void JGE::HoldKey(const JButton sym)
|
||||||
@@ -116,7 +117,7 @@ void JGE::HoldKey(const JButton sym)
|
|||||||
void JGE::HoldKey_NoRepeat(const JButton sym)
|
void JGE::HoldKey_NoRepeat(const JButton sym)
|
||||||
{
|
{
|
||||||
keyBuffer.push(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)
|
void JGE::ReleaseKey(const LocalKeySym sym)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ GameStateDeckViewer::~GameStateDeckViewer() {
|
|||||||
SAFE_DELETE(myDeck->parent);
|
SAFE_DELETE(myDeck->parent);
|
||||||
SAFE_DELETE(myDeck);
|
SAFE_DELETE(myDeck);
|
||||||
}
|
}
|
||||||
if(myCollection{
|
if(myCollection){
|
||||||
SAFE_DELETE(myCollection->parent)
|
SAFE_DELETE(myCollection->parent);
|
||||||
SAFE_DELETE(myCollection);
|
SAFE_DELETE(myCollection);
|
||||||
}
|
}
|
||||||
SAFE_DELETE(filterDeck);
|
SAFE_DELETE(filterDeck);
|
||||||
@@ -221,8 +221,8 @@ void GameStateDeckViewer::End()
|
|||||||
SAFE_DELETE(menu);
|
SAFE_DELETE(menu);
|
||||||
|
|
||||||
resources.Release(pspIconsTexture);
|
resources.Release(pspIconsTexture);
|
||||||
if(myCollection{
|
if(myCollection){
|
||||||
SAFE_DELETE(myCollection->parent)
|
SAFE_DELETE(myCollection->parent);
|
||||||
SAFE_DELETE(myCollection);
|
SAFE_DELETE(myCollection);
|
||||||
}
|
}
|
||||||
if(myDeck){
|
if(myDeck){
|
||||||
|
|||||||
Reference in New Issue
Block a user