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/main.c

    r90 r110  
    2020 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    2121 */
     22
     23#include "config.h"
    2224
    2325#include <stdio.h>
     
    183185
    184186            /* XXX: to be removed */
    185             if(ee_rand(0,10) == 0)
     187            if(ee_rand(0, 9) == 0)
    186188            {
    187189                int list[3] = { ALIEN_FOO, ALIEN_BAR, ALIEN_BAZ };
    188190
    189                 add_alien(g, g->al, 0, rand() % g->h / 2, list[ee_rand(0,3)]);
     191                add_alien(g, g->al, 0, rand() % g->h / 2, list[ee_rand(0,2)]);
    190192            }
    191193
Note: See TracChangeset for help on using the changeset viewer.