mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 03:42:34 +01:00
- added OBJECT_SMASHED_MARK constant
This commit is contained in:
parent
04e1be8a72
commit
1bcd4de91f
@ -605,7 +605,7 @@ int CarBuildingCollision(CAR_DATA *cp, BUILDING_BOX *building, CELL_OBJECT *cop,
|
||||
else
|
||||
buildingHeightY = building->height >> 1;
|
||||
|
||||
if (boxDiffY <= buildingHeightY + (cp->hd.oBox.length[1] >> 1) && (cop->pos.vx != 0xFD46FEC0) && (model->shape_flags & SHAPE_FLAG_NOCOLLIDE) == 0)
|
||||
if (boxDiffY <= buildingHeightY + (cp->hd.oBox.length[1] >> 1) && (cop->pos.vx != OBJECT_SMASHED_MARK) && (model->shape_flags & SHAPE_FLAG_NOCOLLIDE) == 0)
|
||||
{
|
||||
tempwhere.vx = cp->hd.where.t[0];
|
||||
tempwhere.vz = cp->hd.where.t[2];
|
||||
|
@ -1616,7 +1616,7 @@ int damage_object(CELL_OBJECT *cop, VECTOR *velocity)
|
||||
if (dam->velocity.vy < -67)
|
||||
dam->velocity.vy = -67;
|
||||
|
||||
cop->pos.vx = 0xFD46FEC0;
|
||||
cop->pos.vx = OBJECT_SMASHED_MARK;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -15,6 +15,8 @@ struct SMASHABLE_OBJECT
|
||||
#define SMOKE_BROWN 3
|
||||
#define SMOKE_FIRE 4
|
||||
|
||||
#define OBJECT_SMASHED_MARK 0xFD46FEC0
|
||||
|
||||
extern TEXTURE_DETAILS smoke_texture;
|
||||
extern TEXTURE_DETAILS debris_texture;
|
||||
extern TEXTURE_DETAILS litter_texture;
|
||||
|
Loading…
Reference in New Issue
Block a user