mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
parent
aa5f42e5f4
commit
b417ad2f6d
1 changed files with 2 additions and 2 deletions
|
@ -99,12 +99,12 @@ constexpr inline int levelnum(int vol, int map)
|
|||
|
||||
constexpr inline int volfromlevelnum(int num)
|
||||
{
|
||||
return num > 0 ? num / 1000 : 0;
|
||||
return num >= 0 ? num / 1000 : 0;
|
||||
}
|
||||
|
||||
constexpr inline int mapfromlevelnum(int num)
|
||||
{
|
||||
return num > 0 ? num % 1000 : -1;
|
||||
return num >= 0 ? num % 1000 : -1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue