diff options
| -rw-r--r-- | FXMAZE.G1A | bin | 57716 -> 56120 bytes | |||
| -rw-r--r-- | engine.c | 15 | ||||
| -rw-r--r-- | global.c | 1 |
3 files changed, 12 insertions, 4 deletions
| Binary files differ @@ -64,8 +64,6 @@ void combSort(int* order, float* dist, int amount) }
}
-#define PI 3.141592653589793238464
-
// perform a shoot
static void pshoot()
{
@@ -298,9 +296,18 @@ void cast() int foundsprite = FALSE, spritehere;
spriteDist = (float *) calloc(spritecnt, sizeof(float));
- if(spriteDist == NULL)error("Memory; locate spriteDist");
+ if(spriteDist == NULL)
+ {
+ char msg[20];
+ sprintf(&msg, "locate spriteDist: %d B", spritecnt * sizeof(float));
+ }
spriteOrder = (int *) calloc(spritecnt, sizeof(int));
- if(spriteOrder == NULL)error("Memory; locate spriteOrder");
+ if(spriteOrder == NULL)
+ {
+ char msg[20];
+ sprintf(&msg, "locate spriteOrder: %d B", spritecnt * sizeof(float));
+ error("Memory; locate spriteOrder");
+ }
for(x = 0; x < spritecnt; x++)
{
@@ -107,4 +107,5 @@ void error(char * msg) PrintMini(1,1, "ERROR!");
PrintMini(1, 10, msg);
display_vram();
+ while(1);
}
|
