-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
211 changed files
with
1,768 additions
and
1,746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a26541a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have to comment the if block out to get it to compile. Is this an okay thing to do?
/home/quyen/MCServer/src/Generating/ComposableGenerator.cpp(148): error: no operator "!=" matches these operands
operand types are: cBiomeGenPtr != std::nullptr_t
if (m_BiomeGen != nullptr) // Quick fix for generator deinitializing before the world storage finishes loading
^
compilation aborted for /home/quyen/MCServer/src/Generating/ComposableGenerator.cpp (code 2)
make[2]: *** [src/Generating/CMakeFiles/Generating.dir/ComposableGenerator.cpp.o] Error 2
make[1]: *** [src/Generating/CMakeFiles/Generating.dir/all] Error 2
make: *** [all] Error 2
a26541a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, why is a comparison to null needed? Doesn't this do the same thing?
I thought anything != 0 will always evaluate to true, so a comparison to null is superfluous? Am I missing something?
a26541a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We prefer explicit comparisons.
a26541a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but then how could I make the compile error go away?
a26541a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try
a26541a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works. Compiled successfully on icpc version 15. Thank you.