Level compiler creates correct novel with supplied name
Before this commit, the name of a novel in the level files was ignored for
setting novelidx. But the name was set nevertheless, so you got a named novel
that showed quotes from a different novel.
Now, 'des.object({ id = "novel", name="Raising Steam"});' will work as
expected.
This commit is contained in:
@@ -2102,8 +2102,13 @@ struct mkroom *croom;
|
||||
}
|
||||
/* set_corpsenm() took care of egg hatch and corpse timers */
|
||||
|
||||
if (named)
|
||||
if (named) {
|
||||
otmp = oname(otmp, o->name.str);
|
||||
if (otmp->otyp == SPE_NOVEL) {
|
||||
/* needs to be an existing title */
|
||||
(void) lookup_novel(o->name.str, &otmp->novelidx);
|
||||
}
|
||||
}
|
||||
|
||||
if (o->eroded) {
|
||||
if (o->eroded < 0) {
|
||||
|
||||
Reference in New Issue
Block a user