From f4a77600e746fc62ee223a7619344c8d06f7f817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Wed, 23 Jun 2021 00:15:27 +0700 Subject: Fix costume array out of bound --- src/Person.cpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/Person.cpp') 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 . + #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]; -- cgit v1.2.3