$NetBSD: patch-ag,v 1.1 2001/01/04 01:08:59 wiz Exp $ --- clanbomber/Debug.cpp.orig Sun Jan 9 02:18:32 2000 +++ clanbomber/Debug.cpp @@ -64,7 +64,7 @@ if (CL_Keyboard::get_keycode(CL_KEY_F2) && !key_F2) { - Bomber* bomber =new Bomber(((rand()%(MAP_WIDTH-2))+1)*40,((rand()%(MAP_HEIGHT-2))+1)*40,Bomber::GREEN, Controller::create(Controller::AI), "Debug Robi", 0,0, app); + Bomber* bomber =new Bomber(((random()%(MAP_WIDTH-2))+1)*40,((random()%(MAP_HEIGHT-2))+1)*40,Bomber::GREEN, Controller::create(Controller::AI), "Debug Robi", 0,0, app); // bomber->fly_to(app->map->get_passable()); bomber->controller->activate(); } @@ -72,7 +72,7 @@ if (CL_Keyboard::get_keycode(CL_KEY_F3) && !key_F3) { - Bomber* bomber =new Bomber(((rand()%(MAP_WIDTH-2))+1)*40,((rand()%(MAP_HEIGHT-2))+1)*40,Bomber::RED, Controller::create(Controller::AI_MIC), "Debug Robi MIC", 0,0, app); + Bomber* bomber =new Bomber(((random()%(MAP_WIDTH-2))+1)*40,((random()%(MAP_HEIGHT-2))+1)*40,Bomber::RED, Controller::create(Controller::AI_MIC), "Debug Robi MIC", 0,0, app); // bomber->fly_to(app->map->get_passable()); bomber->controller->activate(); }