mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Allow floats to be constants
This commit is contained in:
parent
026c2fe550
commit
db2d2a20fa
4 changed files with 11 additions and 0 deletions
|
@ -163,6 +163,7 @@ def process_define(filename, line):
|
|||
|
||||
val = val.replace('(u8)', '')
|
||||
val = val.replace('(u64)', '')
|
||||
val = re.sub(r'\.\d+f', '', val)
|
||||
|
||||
for p in val.split(' '):
|
||||
if p.startswith('0x'):
|
||||
|
|
|
@ -5677,6 +5677,12 @@ PACKET_LENGTH = 3000
|
|||
--- @type integer
|
||||
SYNC_DISTANCE_INFINITE = 0
|
||||
|
||||
--- @type integer
|
||||
SYNC_DISTANCE_ONLY_DEATH = -1
|
||||
|
||||
--- @type integer
|
||||
SYNC_DISTANCE_ONLY_EVENTS = -2
|
||||
|
||||
--- @class BouncyLevelBounds
|
||||
|
||||
--- @type BouncyLevelBounds
|
||||
|
|
|
@ -2035,6 +2035,8 @@
|
|||
## [network.h](#network.h)
|
||||
- PACKET_LENGTH
|
||||
- SYNC_DISTANCE_INFINITE
|
||||
- SYNC_DISTANCE_ONLY_DEATH
|
||||
- SYNC_DISTANCE_ONLY_EVENTS
|
||||
|
||||
### [enum BouncyLevelBounds](#BouncyLevelBounds)
|
||||
| Identifier | Value |
|
||||
|
|
|
@ -2093,6 +2093,8 @@ char gSmluaConstants[] = ""
|
|||
"GRAB_POS_BOWSER = 3\n"
|
||||
"MAX_KEYS = 512\n"
|
||||
"MAX_KEY_VALUE_LENGTH = 64\n"
|
||||
"SYNC_DISTANCE_ONLY_DEATH = -1\n"
|
||||
"SYNC_DISTANCE_ONLY_EVENTS = -2\n"
|
||||
"SYNC_DISTANCE_INFINITE = 0\n"
|
||||
"PACKET_LENGTH = 3000\n"
|
||||
"NS_SOCKET = 0\n"
|
||||
|
|
Loading…
Reference in a new issue