Ignore:
Timestamp:
Nov 10, 2003, 12:34:24 AM (17 years ago)
Author:
Sam Hocevar
Message:
  • src/*.c: + Added missing #include "config.h". + Fixed a nasty bug in ee_rand() calls.
File:
1 edited

Legend:

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

    r90 r110  
    2020 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    2121 */
     22
     23#include "config.h"
    2224
    2325#include <stdlib.h>
     
    126128                {
    127129                    add_explosion(g, ex, GET_MIN(t->left[y-j], x+3), y-j, 0, 1, EXPLOSION_SMALL);
    128                     t->left[y-j] -= ee_rand(0,3);
     130                    t->left[y-j] -= ee_rand(0,2);
    129131                }
    130132                else if(x + 3 >= t->right[y-j])
    131133                {
    132134                    add_explosion(g, ex, GET_MAX(t->right[y-j], x-2), y-j, 0, 1, EXPLOSION_SMALL);
    133                     t->right[y-j] += ee_rand(0,3);
     135                    t->right[y-j] += ee_rand(0,2);
    134136                }
    135137            }
Note: See TracChangeset for help on using the changeset viewer.