Make fill_special_room avoid themed rooms
No code in this function would actually do anything if it were called on a themed room, but since it is pretty clearly intended for the "regular" special rooms, it's probably best to explicitly avoid themed rooms as well.
This commit is contained in:
committed by
Pasi Kallinen
parent
0b2b0965a8
commit
f57588cef1
+1
-1
@@ -2686,7 +2686,7 @@ fill_special_room(croom, prefilled)
|
|||||||
struct mkroom *croom;
|
struct mkroom *croom;
|
||||||
boolean prefilled;
|
boolean prefilled;
|
||||||
{
|
{
|
||||||
if (!croom || croom->rtype == OROOM)
|
if (!croom || croom->rtype == OROOM || croom->rtype == THEMEROOM)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!prefilled) {
|
if (!prefilled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user