Mercurial > hg > forks > 3x666-SDL
comparison 3x666.c @ 27:3f8f518905db
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 16 Mar 2013 01:04:24 +0200 |
parents | 7f7330567277 |
children | 9f72bd464802 |
comparison
equal
deleted
inserted
replaced
26:7f7330567277 | 27:3f8f518905db |
---|---|
101 | 101 |
102 va_start(ap, fmt); | 102 va_start(ap, fmt); |
103 dmErrorVA(fmt, ap); | 103 dmErrorVA(fmt, ap); |
104 va_end(ap); | 104 va_end(ap); |
105 } | 105 } |
106 | |
107 | |
108 | 106 |
109 | 107 |
110 static BOOL engineInitializeVideo() | 108 static BOOL engineInitializeVideo() |
111 { | 109 { |
112 SDL_FreeSurface(engine.screen); | 110 SDL_FreeSurface(engine.screen); |
392 v->x = cos(b) * cam; | 390 v->x = cos(b) * cam; |
393 v->y = cos(c) * sam - sin(c) * sbcam; | 391 v->y = cos(c) * sam - sin(c) * sbcam; |
394 v->z = cos(c) * sbcam + sin(c) * sam; | 392 v->z = cos(c) * sbcam + sin(c) * sam; |
395 } | 393 } |
396 | 394 |
395 | |
397 /************************* MUSiC cODE **************************/ | 396 /************************* MUSiC cODE **************************/ |
398 | 397 |
399 /* This table was ripped (and reduced and rudely integerized) from the | 398 /* This table was ripped (and reduced and rudely integerized) from the |
400 Maube tracker by K .. keep on the good work man! ;) */ | 399 Maube tracker by K .. keep on the good work man! ;) */ |
401 | 400 |
475 void audio_close() | 474 void audio_close() |
476 { | 475 { |
477 if (drum0) free(drum0); | 476 if (drum0) free(drum0); |
478 if (drum1) free(drum1); | 477 if (drum1) free(drum1); |
479 } | 478 } |
479 | |
480 | 480 |
481 static int engineRenderAudio(Sint32 *stream) | 481 static int engineRenderAudio(Sint32 *stream) |
482 { | 482 { |
483 static int rowno = 0; | 483 static int rowno = 0; |
484 static signed int delta = -5; | 484 static signed int delta = -5; |