Commit Graph

20 Commits

Author SHA1 Message Date
jacob1
8064d3b467 remove useless debug print in !set 2017-07-25 20:11:57 -04:00
jacob1
ce054bfc3f fix misc. errors reported by clang static analyzer 2017-05-06 20:02:23 -04:00
jacob1
cdc8f64896 fix clang compile warnings, fixes #406
also, sim.ambientAirTemp takes floats now
2017-04-27 23:08:06 -04:00
jacob1
866289c179 remove duplicate function, fix Simulation::GetParticleType, fixes #402 2017-04-21 20:24:24 -04:00
jacob1
797f9357ff fix float detection in console, fixes stuff like !set type all 0.8C 2016-09-10 12:46:15 -04:00
wolfy1339
b65e94900e Use C++ includes (#308)
Replaces stdio.h, stdlib.h, string.h, math.h, time.h, limits.h and othters with their C++ equivalents.
2016-07-17 23:37:24 -04:00
jacob1
f6d82b6f8a separate t and v argument in create_part, fix LIGH not defaulting to .life of 30 with clones / console 2016-01-11 22:38:42 -05:00
jacob1
fbbc755283 resetting sparks resets any sparks in WIFI too 2015-09-01 01:27:03 -04:00
jacksonmj
8f57c9a6c7 Correct return type for TPTScriptInterface::parseInt
so that large integers don't get changed into slightly different values by rounding caused by conversion to a float and back again.
2015-03-01 15:52:15 +00:00
jacob1
54d985f975 gcc warning fixes (up to lua files) 2015-01-16 17:26:13 -05:00
jacob1
dce874484a fix all the gcc warnings in the element files (except one in PSTN) + all the unused variable warnings 2015-01-10 22:43:33 -05:00
jacob1
c9cc2a1a6b more accurate elementCount (part_change_type, pasting stamps, lua), prevent having multiple STKM / SPWN even more 2014-11-20 21:51:45 -05:00
jacob1
16522056fb fix bug where !set arguments would be cast to float then back to int 2014-10-08 00:35:50 -04:00
jacob1
e91a7f1ec4 prevent setting invalid element numbers in the old console 2014-08-29 18:11:00 -04:00
jacob1
fd550be6ae fix invalid hex number detection also 2014-08-09 00:01:24 -04:00
jacob1
e388a4bbad better float detection in old console 2014-08-08 22:18:01 -04:00
jacob1
298e0b63c3 fix bugs with previous commit using FloatType 2014-08-06 23:22:37 -04:00
jacob1
ccb3de7365 support floats in the console
There are some strange bugs with parsing like !set type all 3.5 or !set temp all moo but they aren't too important ...
2014-08-06 12:18:57 -04:00
jacksonmj
7b9f43b8bf Fix some missing return values 2014-05-23 00:00:54 +01:00
jacob1
f66679e551 a little reorganization (maybe more later) 2014-01-20 13:52:53 -05:00