Move similar/main/ai.c -> similar/main/ai.cpp
This commit is contained in:
parent
47a4bb1ff1
commit
53149e6bcd
|
@ -817,7 +817,7 @@ class DXXProgram(DXXCommon):
|
|||
'arch/sdl/key.cpp',
|
||||
'arch/sdl/mouse.cpp',
|
||||
'arch/sdl/timer.cpp',
|
||||
'main/ai.c',
|
||||
'main/ai.cpp',
|
||||
'main/aipath.cpp',
|
||||
'main/automap.cpp',
|
||||
'main/cntrlcen.cpp',
|
||||
|
|
|
@ -17,7 +17,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
@ -70,6 +70,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#include "u_mem.h"
|
||||
//end addition -MM
|
||||
|
||||
using std::min;
|
||||
|
||||
#define AI_TURN_SCALE 1
|
||||
#define BABY_SPIDER_ID 14
|
||||
|
||||
|
@ -1232,7 +1234,7 @@ player_led: ;
|
|||
weapon_type = robptr->weapon_type2;
|
||||
#endif
|
||||
|
||||
Laser_create_new_easy( &fire_vec, fire_point, obj-Objects, weapon_type, 1);
|
||||
Laser_create_new_easy( &fire_vec, fire_point, obj-Objects, static_cast<weapon_type_t>(weapon_type), 1);
|
||||
|
||||
if (Game_mode & GM_MULTI)
|
||||
{
|
Loading…
Reference in a new issue