Fix -Wshadow warnings in mark_player_path_to_segment
This commit is contained in:
parent
1551443eff
commit
213c5952d2
|
@ -1811,10 +1811,9 @@ static int mark_player_path_to_segment(segnum_t segnum)
|
||||||
for (int i=1; i<player_path_length; i++) {
|
for (int i=1; i<player_path_length; i++) {
|
||||||
vms_vector seg_center;
|
vms_vector seg_center;
|
||||||
|
|
||||||
const auto &&segnum = vsegptridx(Point_segs[player_hide_index+i].segnum);
|
|
||||||
seg_center = Point_segs[player_hide_index+i].point;
|
seg_center = Point_segs[player_hide_index+i].point;
|
||||||
|
|
||||||
auto obj = obj_create( OBJ_POWERUP, POW_ENERGY, segnum, seg_center, &vmd_identity_matrix, Powerup_info[POW_ENERGY].size, CT_POWERUP, MT_NONE, RT_POWERUP);
|
const auto &&obj = obj_create(OBJ_POWERUP, POW_ENERGY, vsegptridx(Point_segs[player_hide_index+i].segnum), seg_center, &vmd_identity_matrix, Powerup_info[POW_ENERGY].size, CT_POWERUP, MT_NONE, RT_POWERUP);
|
||||||
if (obj == object_none) {
|
if (obj == object_none) {
|
||||||
Int3(); // Unable to drop energy powerup for path
|
Int3(); // Unable to drop energy powerup for path
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue