add map vantage points

The vantage point is supposed to be a distinctive view on a map - like the
angle from which the preview picture was taken.

This commit adds three commands: clearvantagepoint, setvantagepoint and
gotovantagepoint. None has any parameters, all are only allowed in edit
mode. A map can only have one vantage point.
This commit is contained in:
ac-stef
2014-06-23 16:15:47 +02:00
parent 5a88f9c323
commit 556b1eb7f2
4 changed files with 60 additions and 15 deletions
+1 -7
View File
@@ -399,13 +399,7 @@ void nextplayerstart(int *type)
cycle = findentity(PLAYERSTART, cycle + 1, *type);
if(cycle >= 0)
{
entity &e = ents[cycle];
player1->o.x = e.x;
player1->o.y = e.y;
player1->o.z = e.z;
player1->yaw = e.attr1;
player1->pitch = 0;
player1->roll = 0;
gotoplayerstart(player1, &ents[cycle]);
entinmap(player1);
}
}