mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-21 16:35:08 -05:00
Fix zero division
This commit is contained in:
parent
8fb8dba7a2
commit
6a2477f63c
2
game.h
2
game.h
@ -1235,7 +1235,7 @@ RCL_Unit SFG_movingWallHeight
|
|||||||
uint32_t time
|
uint32_t time
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
RCL_Unit height = high - low;
|
RCL_Unit height = RCL_nonZero(high - low);
|
||||||
RCL_Unit halfHeight = height / 2;
|
RCL_Unit halfHeight = height / 2;
|
||||||
|
|
||||||
RCL_Unit sinArg =
|
RCL_Unit sinArg =
|
||||||
|
2
texts.h
2
texts.h
@ -32,7 +32,7 @@ static const char *SFG_menuItemTexts[] =
|
|||||||
#define SFG_TEXT_KILLS "kills"
|
#define SFG_TEXT_KILLS "kills"
|
||||||
#define SFG_TEXT_SAVE_PROMPT "save? L no yes R"
|
#define SFG_TEXT_SAVE_PROMPT "save? L no yes R"
|
||||||
#define SFG_TEXT_SAVED "saved"
|
#define SFG_TEXT_SAVED "saved"
|
||||||
#define SFG_VERSION_STRING "1.0"
|
#define SFG_VERSION_STRING "1.0d"
|
||||||
/**<
|
/**<
|
||||||
Version numbering is following: major.minor for stable releases,
|
Version numbering is following: major.minor for stable releases,
|
||||||
in-development unstable versions have the version of the latest stable +
|
in-development unstable versions have the version of the latest stable +
|
||||||
|
Loading…
Reference in New Issue
Block a user