The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061
This commit is contained in:
parent
3b311c65d0
commit
0999534749
101 changed files with 212 additions and 209 deletions
|
@ -484,7 +484,8 @@ void Script::makeGoewinFollow(uint16 v1, uint16 v2, uint16 v3) {
|
|||
|
||||
void Script::doorClose(uint16 hotspotId, uint16 v2, uint16 v3) {
|
||||
RoomExitJoinData *joinRec = Resources::getReference().getExitJoin(hotspotId);
|
||||
if (!joinRec) error("Tried to close a non-door");
|
||||
if (!joinRec)
|
||||
error("Tried to close a non-door");
|
||||
joinRec->blocked = 1;
|
||||
}
|
||||
|
||||
|
@ -511,7 +512,8 @@ void Script::fixGoewin(uint16 v1, uint16 v2, uint16 v3) {
|
|||
|
||||
void Script::doorOpen(uint16 hotspotId, uint16 v2, uint16 v3) {
|
||||
RoomExitJoinData *joinRec = Resources::getReference().getExitJoin(hotspotId);
|
||||
if (!joinRec) error("Tried to close a non-door");
|
||||
if (!joinRec)
|
||||
error("Tried to close a non-door");
|
||||
joinRec->blocked = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue