Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10438] Fix GetHeight() to return height within actual search distanc…
…e only. Good news: Fixes fishing bobber Bad news: Mobs follow into the air again unless larger search distance is used
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "10437" | ||
#define REVISION_NR "10438" | ||
#endif // __REVISION_NR_H__ |
cc1843b
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.
float z2 = z + 2.f;??
must be float z2 = z + 2.0f; or not?
cc1843b
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.
according to : if(z + 2.0f > _mapheight)
it must be 2.0f
cc1843b
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.
ahh also I'm right :)
cc1843b
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.
sigh
Just an old habit of mine, and no, it is not a mistake.
cc1843b
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.
why is 2.f no mistake? 2.0f is the same and, but 2.f is not the coding standard
cc1843b
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 think the "." is a mistake ... it would be 2f or 2.0f ? haha am i wrong?
cc1843b
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.
They are interchangeable, it's just an older convention.