diff options
author | Samuel Villareal | 2010-09-18 05:09:21 +0000 |
---|---|---|
committer | Samuel Villareal | 2010-09-18 05:09:21 +0000 |
commit | 04a3bc8c48b80f979de8f4983eaa7093ca9fa11e (patch) | |
tree | 107d5e5f5562b74d2ce2649a4cc9d33d2f9c9bb2 /src | |
parent | 687ff30bcc7ae07e8dcc7928598aa0ea268201bd (diff) | |
download | chocolate-doom-04a3bc8c48b80f979de8f4983eaa7093ca9fa11e.tar.gz chocolate-doom-04a3bc8c48b80f979de8f4983eaa7093ca9fa11e.tar.bz2 chocolate-doom-04a3bc8c48b80f979de8f4983eaa7093ca9fa11e.zip |
+ healthamounts array added
Subversion-branch: /branches/strife-branch
Subversion-revision: 2105
Diffstat (limited to 'src')
-rw-r--r-- | src/strife/p_dialog.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/strife/p_dialog.c b/src/strife/p_dialog.c index 5422f796..1557c369 100644 --- a/src/strife/p_dialog.c +++ b/src/strife/p_dialog.c @@ -112,6 +112,9 @@ char dialoglastmsgbuffer[48]; // Item to display to player when picked up or recieved
char pickupstring[46];
+// Health based on gameskill given by the front's medic
+static const int healthamounts[] = { -100 , -75, -50, -50, -100 };
+
//=============================================================================
//
// Dialog State Sets
@@ -740,9 +743,8 @@ boolean P_GiveItemToPlayer(player_t *player, int sprnum, mobjtype_t type) // health refill (at front HQ)
case MT_TOKEN_HEALTH:
- // [STRIFE] TODO - add healthamounts array
- //if(!P_GiveBody(player, healthamounts[gameskill]))
- // return false;
+ if(!P_GiveBody(player, healthamounts[gameskill]))
+ return false;
break;
// alarm
@@ -1212,7 +1214,7 @@ void P_DialogDoChoice(int choice) {
sprintf(mission_objective, "log%i", objective);
objlump = W_CacheLumpName(mission_objective, PU_CACHE);
- strncpy(mission_objective, objlump, 300);
+ strncpy(mission_objective, objlump, OBJECTIVE_LEN);
}
dialogplayer->message = message;
}
|