Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 3ac406d

Browse files
committed
Missing param description in RoundFloatToPrecision
Missing changelog entry about changes to FileOpen cause they came up with VW
1 parent abbb7e3 commit 3ac406d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ This can be accessed via the new Lua (R/W) `SettingsMan` property `AIUpdateInter
851851

852852
- New `Activity` Lua function `activity:SetPlayerHadBrain(player, whetherOrNotPlayerHadBrain)`, which sets whether or not the given player had a brain. Probably mostly useful for dealing with loading a game with multiple players, where one player is dead and you have to sort out brain assignment.
853853

854+
- Changed `LuaMan:FileOpen` access modes so it only allows `"r", "r+", "w", "w+", "a", "a+"`, i.e. specifying type (text, binary) is not supported. See [this reference page](https://cplusplus.com/reference/cstdio/fopen) for details on the access modes.
855+
854856
</details>
855857

856858
<details><summary><b>Fixed</b></summary>

System/RTETools.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ namespace RTE {
145145
/// Rounds a float to a set fixed point precision (digits after decimal point) with option to always ceil or always floor the remainder.
146146
/// </summary>
147147
/// <param name="inputFloat">The input float to round.</param>
148+
/// <param name="precision">The precision to round to, i.e. the number of digits after the decimal points.</param>
148149
/// <param name="roundingMode">Method of rounding to use. 0 for system default, 1 for floored remainder, 2 for ceiled remainder.</param>
149150
/// <returns>A string of the float, rounded and displayed to chosen precision.</returns>
150151
std::string RoundFloatToPrecision(float input, int precision, int roundingMode = 0);

0 commit comments

Comments
 (0)