/* * Descent 3 * Copyright (C) 2024 Parallax Software * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . --- HISTORICAL COMMENTS FOLLOW --- * $Logfile: /DescentIII/Main/editor/selectedroom.cpp $ * $Revision: 1.1.1.1 $ * $Date: 2003-08-26 03:57:39 $ * $Author: kevinb $ * * Functions for dealing with selected list * * $Log: not supported by cvs2svn $ * * 10 4/16/99 5:18p Matt * Don't free selected list memory if none was allocated. * * 9 4/11/99 2:41a Jeff * had to include stdafx.h for neweditor * * 8 4/07/99 7:07p Gwar * added #define NEWEDITOR checks * * 7 1/21/99 11:15p Jeff * pulled out some structs and defines from header files and moved them * into seperate header files so that multiplayer dlls don't require major * game headers, just those new headers. Side effect is a shorter build * time. Also cleaned up some header file #includes that weren't needed. * This affected polymodel.h, object.h, player.h, vecmat.h, room.h, * manage.h and multi.h * * 6 10/08/98 4:24p Kevin * Changed code to comply with memory library usage. Always use mem_malloc * , mem_free and mem_strdup * * 5 12/23/97 1:33p Samir * Added pserror.h * * 4 9/04/97 4:39p Matt * Added includes needed as a result of removing includes from d3edit.h * * 3 8/29/97 5:26p Matt * Fixed name of ClearRoomSelectedList() * * 2 7/31/97 3:31p Jason * added functions to rotate portal rooms * * 1 7/31/97 10:35a Jason * * $NoKeywords: $ */ #include "selectedroom.h" #ifdef NEWEDITOR #include "../neweditor/stdafx.h" #include "../neweditor/globals.h" #else #include "d3edit.h" #endif #include "room.h" #include "pserror.h" #include "mem.h" //Returns true if a room is in the selected list int IsRoomSelected(int roomnum) { int i; for (i=0;i