mirror of https://github.com/OpenTTD/OpenTTD
(svn r27896) -Fix: some warnings
parent
a6e7f1142b
commit
062c736437
|
@ -1102,7 +1102,7 @@ exception_trap:
|
||||||
_lasterror = currerror;
|
_lasterror = currerror;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
assert(0);
|
NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SQVM::CreateClassInstance(SQClass *theclass, SQObjectPtr &inst, SQObjectPtr &constructor)
|
bool SQVM::CreateClassInstance(SQClass *theclass, SQObjectPtr &inst, SQObjectPtr &constructor)
|
||||||
|
|
|
@ -77,7 +77,7 @@ void FileList::BuildFileList(AbstractFileType abstract_filetype, SaveLoadOperati
|
||||||
{
|
{
|
||||||
this->Clear();
|
this->Clear();
|
||||||
|
|
||||||
assert(fop == SLO_LOAD || SLO_SAVE);
|
assert(fop == SLO_LOAD || fop == SLO_SAVE);
|
||||||
switch (abstract_filetype) {
|
switch (abstract_filetype) {
|
||||||
case FT_NONE:
|
case FT_NONE:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1236,6 +1236,7 @@ bool NPFTrainFindNearestSafeTile(const Train *v, TileIndex tile, Trackdir trackd
|
||||||
/* We set this in case the target is also the start tile, we will just
|
/* We set this in case the target is also the start tile, we will just
|
||||||
* return a not found then */
|
* return a not found then */
|
||||||
start1.user_data[NPF_TRACKDIR_CHOICE] = INVALID_TRACKDIR;
|
start1.user_data[NPF_TRACKDIR_CHOICE] = INVALID_TRACKDIR;
|
||||||
|
start1.user_data[NPF_NODE_FLAGS] = 0;
|
||||||
start1.direction = trackdir;
|
start1.direction = trackdir;
|
||||||
NPFSetFlag(&start1, NPF_FLAG_IGNORE_RESERVED, true);
|
NPFSetFlag(&start1, NPF_FLAG_IGNORE_RESERVED, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue