- Added support for damage-specific player pain sounds.
- Removed the constraint that all $playerreserve SNDINFO commands must come before the other $player commands. - Fixed: TArray::Reserve did not construct its newly allocated entries. - Changed the damage type for drowning from 'Water' to 'Drowning'. SVN r466 (trunk)
This commit is contained in:
parent
ba5e77e021
commit
72c93b479e
13 changed files with 233 additions and 46 deletions
|
|
@ -3,7 +3,7 @@
|
|||
** Templated, automatically resizing array
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 1998-2006 Randy Heit
|
||||
** Copyright 1998-2007 Randy Heit
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -214,6 +214,10 @@ public:
|
|||
Grow (amount);
|
||||
unsigned int place = Count;
|
||||
Count += amount;
|
||||
for (unsigned int i = place; i < Count; ++i)
|
||||
{
|
||||
::new((void *)&Array[i]) T;
|
||||
}
|
||||
return place;
|
||||
}
|
||||
unsigned int Size () const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue