diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-23 00:15:27 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-23 00:18:08 +0700 |
| commit | f4a77600e746fc62ee223a7619344c8d06f7f817 (patch) | |
| tree | b99c1f4fac54d99609066644c21fdde3c6001c72 /src/Person.cpp | |
| parent | 80ae4f1c42abfd1ddb576699f291f759250219c0 (diff) | |
| download | blackshades-f4a77600e746fc62ee223a7619344c8d06f7f817.tar.gz | |
Fix costume array out of bound
Diffstat (limited to 'src/Person.cpp')
| -rw-r--r-- | src/Person.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/Person.cpp b/src/Person.cpp index bce24f2..e0ec5f7 100644 --- a/src/Person.cpp +++ b/src/Person.cpp @@ -1,4 +1,22 @@ -/**> HEADER FILES <**/ +// Person simulation and visualization +// Copyright (C) 2002 David Rosen +// Copyright (C) 2021 Nguyễn Gia Phong +// +// This file is part of Black Shades. +// +// Black Shades is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Black Shades is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Black Shades. If not, see <https://www.gnu.org/licenses/>. + #include "Person.h" extern double multiplier; @@ -24,7 +42,7 @@ extern int psychicaimkey; extern int psychickey; extern Model skeletonmodels[10]; -extern Costume costume[2]; +extern Costume costume[10]; HitStruct Person::BulletCollideWithPlayer(int who, XYZ start, XYZ end){ XYZ tempbulletloc[2]; |
