Deceth / Battle-City

Build a city, hire a team, drive a tank, orb the enemy! Multiplayer online game.
http://battlecity.org
GNU General Public License v3.0
49 stars 24 forks source link

Cannot build on area where a player died #8

Closed Rushing closed 10 years ago

Rushing commented 14 years ago

You cannot build an area where a player died. Simple fix in CCollision.cpp, // For each possible player, for (int a = 0; a < MAX_PLAYERS; a++) { if (p->Player[a]->X-48 <= X_48 && p->Player[a]->X+48 >= (X-2)_48 && p->Player[a]->Y-48 <= Y_48 && p->Player[a]->Y+48 >= (Y-2)_48 && (p->Player[a]->isDead == false)) { return 1; }

Deceth commented 14 years ago

Is this a bug, or the benefit of death? When all signs point to death, your sacrifice, if well placed, could greatly assist your fellow team mates in their quest for conquest...

Rushing commented 14 years ago

When you put it that way, I suppose so, but since players don't really see it like that, and attackers generally try and spread out to cause more of an issue for the mayor, well then I think it's more of a bug.

Deceth commented 14 years ago

At one point we tried to create an image of a 'dead' or 'blow-up' tank to display until you re-spawn.