Lines 198-205
Link Here
|
198 |
glPushMatrix(); |
198 |
glPushMatrix(); |
199 |
glLoadIdentity(); |
199 |
glLoadIdentity(); |
200 |
glRotatef(logoRot, 0, 0, 1 ); |
200 |
glRotatef(logoRot, 0, 0, 1 ); |
201 |
glTranslatef( 70, 10 - (abs(logoRot) / 0.25f), 500 ); |
201 |
glTranslatef( 70, 10 - (abs((int)logoRot) / 0.25f), 500 ); |
202 |
float zoom = (abs(logoRot) / (LOGO_ROT_POS / LOGO_ZOOM)) + 1.0f; |
202 |
float zoom = (abs((int)logoRot) / (LOGO_ROT_POS / LOGO_ZOOM)) + 1.0f; |
203 |
glScalef( zoom, zoom, 1 ); |
203 |
glScalef( zoom, zoom, 1 ); |
204 |
float w = scourge->getShapePalette()->logo->w; |
204 |
float w = scourge->getShapePalette()->logo->w; |
205 |
float h = scourge->getShapePalette()->logo->h; |
205 |
float h = scourge->getShapePalette()->logo->h; |
Lines 242-248
Link Here
|
242 |
void MainMenu::addLogoSprite() { |
242 |
void MainMenu::addLogoSprite() { |
243 |
if(logoSpriteCount >= MAX_LOGOS - 1) return; |
243 |
if(logoSpriteCount >= MAX_LOGOS - 1) return; |
244 |
logoSprite[logoSpriteCount].x = 70.0f; |
244 |
logoSprite[logoSpriteCount].x = 70.0f; |
245 |
logoSprite[logoSpriteCount].y = 10 - (abs(logoRot) / 0.25f); |
245 |
logoSprite[logoSpriteCount].y = 10 - (abs((int)logoRot) / 0.25f); |
246 |
logoSprite[logoSpriteCount].angle = 1.0f + (88.0f * rand()/RAND_MAX); |
246 |
logoSprite[logoSpriteCount].angle = 1.0f + (88.0f * rand()/RAND_MAX); |
247 |
logoSprite[logoSpriteCount].quadrant = (int)(4.0f * rand()/RAND_MAX); |
247 |
logoSprite[logoSpriteCount].quadrant = (int)(4.0f * rand()/RAND_MAX); |
248 |
logoSprite[logoSpriteCount].steps = 0; |
248 |
logoSprite[logoSpriteCount].steps = 0; |