Ignore:
Timestamp:
Nov 14, 2003, 6:02:36 PM (19 years ago)
Author:
Sam Hocevar
Message:
  • Sanity checks after each malloc() call.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/src/weapons.c

    r164 r174  
    170170                if(dx | dy)
    171171                {
    172                     int norm = ee_sqrt(dx * dx + 4 * dy * dy);
     172                    unsigned int norm = ee_sqrt(dx * dx + 4 * dy * dy);
    173173                    dx = dx * 32 / norm;
    174174                    dy = dy * 32 / norm;
     
    182182                if(dx | dy)
    183183                {
    184                     int norm = ee_sqrt(dx * dx + 4 * dy * dy);
     184                    unsigned int norm = ee_sqrt(dx * dx + 4 * dy * dy);
    185185                    wp->vx[i] = dx * 32 / norm;
    186186                    wp->vy[i] = dy * 32 / norm;
Note: See TracChangeset for help on using the changeset viewer.