mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 02:16:37 +02:00
Generate snapshot id if non given
This commit is contained in:
@@ -99,7 +99,6 @@ env.Append(CPPPATH=['src/', 'data/', 'generated/'])
|
||||
env.Append(CCFLAGS=['-w', '-std=c99', '-fkeep-inline-functions'])
|
||||
env.Append(LIBS=['pthread', 'm', 'bz2'])
|
||||
env.Append(CPPDEFINES={"_POSIX_C_SOURCE": "200112L"})
|
||||
env.Append(CPPDEFINES={"SNAPSHOT_ID": int(time.time())})
|
||||
env.Append(CPPDEFINES=["USE_SDL", "LUACONSOLE", "GRAVFFT", "_GNU_SOURCE", "USE_STDINT"])
|
||||
|
||||
if GetOption("ptw32-static"):
|
||||
@@ -132,6 +131,8 @@ if(GetOption('beta')):
|
||||
if(GetOption('snapshot')):
|
||||
env.Append(CPPDEFINES={'SNAPSHOT_ID': GetOption('snapshot')})
|
||||
env.Append(CPPDEFINES='SNAPSHOT')
|
||||
else:
|
||||
env.Append(CPPDEFINES={"SNAPSHOT_ID": int(time.time())})
|
||||
|
||||
if(GetOption('save-version')):
|
||||
env.Append(CPPDEFINES={'SAVE_VERSION': GetOption('major-version')})
|
||||
|
Reference in New Issue
Block a user