summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile2.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-10 00:18:32 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-10 00:18:32 +0000
commit9f29aa11e3a5fceadf1ac2906283b86e5700659b (patch)
treebb5e30bb30542b00188da1b043e17a75f946b442 /crawl-ref/source/tile2.cc
parente262ce4eaaf15dce979f563beaa33c73503d089a (diff)
downloadcrawl-ref-9f29aa11e3a5fceadf1ac2906283b86e5700659b.tar.gz
crawl-ref-9f29aa11e3a5fceadf1ac2906283b86e5700659b.zip
Fixing compilation issues from ghost changes.
Fixing incorrect asserts in tiles code. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3236 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r--crawl-ref/source/tile2.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc
index aa8b34a242..bcbc8bdc2a 100644
--- a/crawl-ref/source/tile2.cc
+++ b/crawl-ref/source/tile2.cc
@@ -10,6 +10,7 @@
#include "direct.h"
#include "dungeon.h"
#include "files.h"
+#include "ghost.h"
#include "guic.h"
#include "itemprop.h"
#include "it_use2.h"
@@ -2110,7 +2111,7 @@ void TileGhostInit(struct ghost_demon &ghost)
{
dolls_data doll;
int x, y;
- unsigned int pseudo_rand = ghost.values[GVAL_MAX_HP]*54321*54321;
+ unsigned int pseudo_rand = ghost.max_hp*54321*54321;
char mask[TILE_X*TILE_Y];
int g_gender = (pseudo_rand >>8)&1;
@@ -2123,9 +2124,9 @@ void TileGhostInit(struct ghost_demon &ghost)
doll.parts[x] = 0;
current_parts[x] = 0;
}
- tilep_race_default(ghost.values[GVAL_SPECIES], g_gender,
- ghost.values[GVAL_EXP_LEVEL], doll.parts);
- tilep_job_default (ghost.values[GVAL_CLASS], g_gender, doll.parts);
+ tilep_race_default(ghost.species, g_gender,
+ ghost.xl, doll.parts);
+ tilep_job_default (ghost.job, g_gender, doll.parts);
for(x = TILEP_PART_CLOAK; x < TILEP_PARTS_TOTAL; x++)
{
@@ -2136,7 +2137,7 @@ void TileGhostInit(struct ghost_demon &ghost)
if (x == TILEP_PART_BODY)
{
int p = 0;
- int ac = ghost.values[GVAL_AC];
+ int ac = ghost.ac;
ac *= (5 + (pseudo_rand/11) % 11);
ac /= 10;
@@ -2156,8 +2157,8 @@ void TileGhostInit(struct ghost_demon &ghost)
}
}
- int sk = ghost.values[GVAL_BEST_SKILL];
- int dam = ghost.values[GVAL_DAMAGE];
+ int sk = ghost.best_skill;
+ int dam = ghost.damage;
int p = 0;
dam *= (5 + pseudo_rand % 11);