mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-22 09:11:02 +00:00
- fixed merge errors from backend update.
This commit is contained in:
parent
9219d24535
commit
d43ebd22ae
2 changed files with 8 additions and 1 deletions
|
@ -316,9 +316,16 @@ public:
|
|||
// Returns a reference to the last element
|
||||
T &Last() const
|
||||
{
|
||||
assert(Count > 0);
|
||||
return Array[Count-1];
|
||||
}
|
||||
|
||||
T SafeGet (size_t index, const T& defaultval) const
|
||||
{
|
||||
if (index <= Count) return Array[index];
|
||||
else return defaultval;
|
||||
}
|
||||
|
||||
// returns address of first element
|
||||
T *Data() const
|
||||
{
|
||||
|
|
|
@ -318,7 +318,7 @@ void S_GetCamera(DVector3* c, DAngle* ca, sectortype** cs)
|
|||
if (ud.cameraactor == nullptr)
|
||||
{
|
||||
auto p = &ps[screenpeek];
|
||||
if (c) *c = p->actor->spr.pos;
|
||||
if (c) *c = p->pos;
|
||||
if (cs) *cs = p->cursector;
|
||||
if (ca) *ca = p->angle.ang;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue