}
#if USEPAK
+ (void)filename;
char tempPath[PATH_MAX];
snprintf(tempPath, sizeof tempPath, "%sfont.ttf", engine->userHomeDirectory);
font[i] = TTF_OpenFont(tempPath, pointSize);
#else
- font[i] = TTF_OpenFont("data/vera.ttf", pointSize);
+ font[i] = TTF_OpenFont(filename, pointSize);
#endif
if (!font[i])
drawRect(120, 420, 400, 10, black, white, screen);
drawRect(121, 421, currentLoading, 8, red, screen);
+ #else
+ (void)amount;
+ (void)max;
#endif
}
}
fclose(pak);
-
+
+ #else
+ (void)pakFilename;
#endif
}
//
int initMedalService(void *data)
{
+ (void)data;
+
SDL_mutexP(medalServer.lock);
char connectMessage[1024];
}
// Increase the size of the window if we have large desktop resolutions
- SDL_DisplayMode displayMode = {0};
+ SDL_DisplayMode displayMode = {};
SDL_GetDesktopDisplayMode(0, &displayMode);
int w = graphics.screen->w;
int h = graphics.screen->h;
void addFireParticles(float x, float y, int amount)
{
- map.addParticle(x + Math::rrand(-2, 2), y + Math::rrand(-2, 2), 0, 1, Math::rrand(5, 30), graphics.red, graphics.getSprite("Explosion", true), PAR_COLLIDES);
+ for (int i = 0 ; i < amount ; i++)
+ {
+ map.addParticle(x + Math::rrand(-2, 2), y + Math::rrand(-2, 2), 0, 1, Math::rrand(5, 30), graphics.red, graphics.getSprite("Explosion", true), PAR_COLLIDES);
+ }
}
void addBubble(float x, float y)