-fixed a memory leak
- Added P02 and PTK 
- New way to create tokens in the parser, much more flexible, see the Hive in RV. Tokens can now be written as other cards, with a rarity of "T". I suggest their id to be the negative value of the card that generates them when possible. Naming convention for images is the same as before: a negative id such as -1138 will need a [id]t.jpg image (1138t.jpg). Positive ids work as "normal" pictures
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-11-18 13:14:08 +00:00
parent ca4c1ca2a8
commit 7f9d22e0aa
16 changed files with 3283 additions and 30 deletions

View File

@@ -19,6 +19,7 @@
#include "../include/Translate.h"
hgeParticleSystem* GameApp::Particles[] = {NULL,NULL,NULL,NULL,NULL,NULL};
MTGAllCards * GameApp::collection = NULL;
int GameApp::HasMusic = 1;
JMusic * GameApp::music = NULL;
string GameApp::systemError = "";
@@ -66,7 +67,7 @@ GameApp::~GameApp()
void GameApp::Create()
{
srand(time(0)); // initialize random
srand((unsigned int)time(0)); // initialize random
#if defined (WIN32)
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#elif not defined (LINUX)