diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-06 09:43:31 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-06 09:43:31 +0000 |
commit | 744b1d6ea78f97bc0564c255380237326453aa44 (patch) | |
tree | 1edd38a009bb5e0499e179910aed4d89e1341937 /crawl-ref/source/tags.cc | |
parent | 18fc50cd46dbe7fcd9c5f57d7c64e852a1f84bac (diff) | |
download | crawl-ref-744b1d6ea78f97bc0564c255380237326453aa44.tar.gz crawl-ref-744b1d6ea78f97bc0564c255380237326453aa44.zip |
Put in a safety valve for monsters with garbage speed/speed_increment (bug
reported by Erik). We need to figure out how the speed-trashing is happening.
Converted speed and speed_increment to ints to avoid wraparound on zero.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1229 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 2aa534d48a..deebe42670 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1617,6 +1617,8 @@ static void unmarshall_monster(tagHeader &th, monsters &m) if (m.type == MONS_PLAYER_GHOST || m.type == MONS_PANDEMONIUM_DEMON) m.set_ghost( unmarshallGhost(th) ); + + m.check_speed(); } static void tag_read_level_monsters(struct tagHeader &th, char minorVersion) |