Kp
f81bb22cb2
Use valptr for ai.cpp
2015-07-12 01:04:19 +00:00
Kp
1f9650d402
Use valptr for ai highest_valid
2015-06-13 22:42:16 +00:00
Kp
00c1429ebf
Use enum for Escort_special_goal
2015-06-13 22:42:15 +00:00
Kp
148c0f44c8
Convert segnum_t to uint16_t
2015-06-13 22:42:15 +00:00
Kp
0141e9ed78
Remove redundant fix_sincos calls
...
The result is immediately overwritten. Skip computing it.
2015-06-02 03:03:32 +00:00
Kp
33204bac5c
Make Break_on_object static
2015-06-02 03:03:31 +00:00
Kp
87eda88319
Skip copying vertex for boss fit check
2015-06-02 03:03:31 +00:00
Kp
850853326c
Pass vsegptridx to gate_in_robot
2015-05-28 03:08:39 +00:00
Kp
ec453dcb28
Merge "Clang fixes" from btb
...
clang whines about some innocuous constructs. Preprocess them out to
silence it.
Requested-by: btb <https://github.com/dxx-rebirth/dxx-rebirth/pull/63 >
2015-05-24 17:13:13 +00:00
Kp
5810faf33d
Make Ai_last_missile_camera object*
2015-05-13 03:20:28 +00:00
Bradley Bell
a0fda81452
Merge branch 'unification/master' into clang-fixes
2015-05-09 15:34:30 -07:00
Kp
3b59a71e11
Remove unused D1 last_see_time
2015-05-09 17:39:00 +00:00
Kp
83baf4dfe8
Remove unused D1 last_attack_time
2015-05-09 17:39:00 +00:00
Bradley Bell
e8cd69f0f4
Not needed in NDEBUG.
...
Fixes: similar/main/ai.cpp:4311:20: error: unused function 'dump_ai_objects_all'
2015-05-05 21:11:51 -07:00
Kp
e590cc59ee
Hack around bogus none in guidebot path
2015-05-05 03:20:43 +00:00
Kp
6792c1bc4b
Enable -Wunused-parameter
2015-04-26 20:15:56 +00:00
Kp
8e5a63700b
Use enum class for ai_mode
2015-04-26 20:15:51 +00:00
Kp
f15ec9c86a
Use enum for AIM constants
2015-04-26 20:15:51 +00:00
Kp
e883d7c872
Use enum class for AIB constants
2015-04-26 20:15:51 +00:00
Kp
863b429eb9
Only visit valid robots
2015-04-22 02:44:30 +00:00
Kp
150e2d2686
Convert local arrays to array<>
2015-04-19 04:18:49 +00:00
Kp
5ae5033fed
Use enum for AIB constants
2015-04-02 02:36:57 +00:00
Kp
6b6eaef226
Include polyobj.h from robot.h
...
Swap the inclusion order since all robots are polyobjects, but not all
polyobjects are robots.
2015-04-02 02:36:57 +00:00
Kp
6e1a1873cc
Fix D1 behavior/mode confusion
2015-04-02 02:36:53 +00:00
Kp
9157e5f970
Use enum class for player_awareness_type_t
2015-04-02 02:36:53 +00:00
Kp
2c0755b117
Factor out AI timesplice check
2015-04-02 02:36:52 +00:00
Kp
90fbebf8fd
Convert most global arrays to array<>
2015-04-02 02:36:52 +00:00
Kp
2f99b894f0
Remove unused state_text
2015-03-22 18:49:21 +00:00
Kp
373becd588
Remove D2-unused mode_text
2015-03-22 18:49:21 +00:00
Kp
7840885473
Fix clang -Wparentheses-equality warnings
2015-03-22 18:49:21 +00:00
Kp
2c09f9fa90
Propagate special types for distance/magnitude
2015-03-12 02:21:19 +00:00
Kp
f2fb31a120
Merge 'D1 emulation issues' into unification/master
...
Requested by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/38
2015-02-20 03:00:46 +00:00
Kp
5c476ddcc3
Fix distance calculation
2015-02-18 03:43:51 +00:00
Bradley Bell
28bd4c1650
Enable D1 boss behavior in d2x build.
...
So we get correct boss behavior when emulating D1, and 3rd party mn2s can include D1 bosses.
2015-02-08 12:26:36 -08:00
Kp
078d9513e0
Pass end-of-list for ignore_obj_list
2015-02-05 03:03:51 +00:00
Kp
4f11c2516f
Add convenience methods fix_sin, fix_cos
2015-02-05 03:03:50 +00:00
Kp
99a4a0ed62
Capture range_for by-value temporaries as const
...
Modifying a by-value temporary does not affect the underlying container,
so modifying it is almost always a bug. Require use of a by-reference
capture when modification is desired.
sed -i -e 's/range_for\s*(\s*\(const\s\+\)\?auto\s\+\([[:alpha:]_]\)/range_for (const auto \2/g'
2015-02-05 03:03:49 +00:00
Kp
4a2c9325bb
Fix various uninitialized accesses
2015-01-28 03:42:52 +00:00
Kp
0ea95e87e7
Pass array<> to create_bfs_list
2015-01-28 03:42:52 +00:00
Kp
c8b5fe5552
Pass find_vector_intersection arg by &
2015-01-20 02:46:42 +00:00
Kp
84e3a03451
Remove unused parameters
2015-01-18 01:58:33 +00:00
Kp
fbac119095
Propagate use of objptridx_t
2014-12-23 04:20:27 +00:00
Kp
b96b6eb4cb
Make do_ai_robot_hit_attack player vobjptridx_t
2014-12-23 04:20:27 +00:00
Kp
1559ebbe9e
Use range_for in pae_aux
2014-11-25 04:04:51 +00:00
Kp
d9a4fc56b3
Split gate_in_robot for individual callers
2014-11-23 21:45:08 +00:00
Kp
d63be88eb0
Propagate use of vsegptridx_t
2014-11-23 04:58:45 +00:00
Kp
2c349136cc
Avoid slicing into segnum_t local
2014-11-20 03:00:36 +00:00
Kp
d5d958af96
Add make_random_vector that returns result
2014-11-04 01:33:45 +00:00
Kp
73474521ea
Pass ai_fire_laser_at_player vector by &
2014-11-02 03:41:17 +00:00
Kp
164ea2dc10
Pass calc_gun_point vector by &
2014-11-02 03:41:01 +00:00