Commit Graph

5151 Commits

Author SHA1 Message Date
mniip
f8586ea3a2 Remove ByteString::Stream 2018-05-04 23:10:39 +03:00
mniip
e29d2c58c2 Copy the Format interface too 2018-05-04 21:12:47 +03:00
mniip
1485ae5a21 Fix incorrect uses of String(char[]) 2018-05-04 20:05:26 +03:00
mniip
d6a92bdab5 Copy the String interface to ByteString 2018-05-04 14:45:57 +03:00
jacob1
ef2a0c2c81 fix single pixel pipe, remove ugly color bit hack 2018-05-03 21:40:48 -04:00
jacob1
44a8665f6f update rng functions in a lot of element files to use .between/.chance
conversion is still very incomplete
2018-05-02 23:53:15 -04:00
mniip
7f5c164d22 Fix partial name element search 2018-05-03 05:22:05 +03:00
mniip
730cf0806a Fix number to string conversion failing after a failed string to number
conversion
2018-05-03 04:55:20 +03:00
mniip
5d80d77f55 Remove String::Stream and with it the locale hacks.
Also fixes the crash when compiled with -O
2018-05-03 04:18:40 +03:00
mniip
ecb41661f8 Fix String::{Begins,Ends}With and with it a bunch of stuff 2018-05-03 04:12:09 +03:00
mniip
5ff8cefca4 Replace String::Stream parsing with number splitting 2018-05-03 04:11:43 +03:00
mniip
1ea7a035d1 Add Number parsing facilities 2018-05-03 02:54:32 +03:00
mniip
4b92926f0d Fix partition again 2018-05-03 00:45:22 +03:00
mniip
2f9cab7e54 Move "big" methods out of the header. Also fix Partition 2018-05-03 00:34:47 +03:00
mniip
d1610c5127 Add string partitioning methods 2018-05-02 23:42:34 +03:00
mniip
6c9cb174fb Change some uses of String::Stream to StringBuilder 2018-05-02 22:11:41 +03:00
mniip
7523c14252 Reword the Format interface 2018-05-02 08:45:50 +03:00
mniip
eeacc90fc5 Add StringBuilder formatters 2018-05-02 06:54:28 +03:00
mniip
f864f81a76 StringBuilder mockup 2018-05-02 05:38:08 +03:00
mniip
ced7b0c993 Move the ConversionError class 2018-05-02 02:22:10 +03:00
mniip
a121c62c3b Add some helper methods and rewrite some of the string manipulation code 2018-05-02 01:32:04 +03:00
mniip
833383b121 Move TPT's icons to the (real) Private Use Area of the unicode 2018-05-01 07:03:48 +03:00
mniip
b8c5e94a41 Add blocks/gaps to the font format 2018-05-01 05:57:03 +03:00
mniip
9d927cbd6f Add an auxiliary font reader class to reduce code repetition 2018-05-01 02:21:34 +03:00
mniip
ff27d69424 Switch from std::string to String/ByteString in most of the code
Also switch SimulationData from weird arrays to std::vector
2018-04-30 21:13:24 +03:00
mniip
4912674bfe Add unicode/byte string classes which are supposed to eventually phase
out std::string
2018-04-29 22:55:00 +03:00
mniip
c0c550e920 Add a new font editor 2018-04-29 18:49:40 +03:00
jacob1
d2e0986bf6 fix occasional issue where deleting the particle RAYT is detecting would delete the particle it is sparking instead
only happened when unpaused and only if the spark was in a certain state. part_change_type was called with the wrong coordinates, which confused pmap and put the sparked particle on top of pmap in the detected particle for a frame
2018-04-29 00:48:53 -04:00
mniip
04c875120a fix some tools' icons breaking their bounding box 2018-04-29 04:23:03 +03:00
mniip
16acc95621 Enlarge the font by adding 2 pixels above the cap height 2018-04-29 04:08:03 +03:00
jacob1
67132c9925 fix another out of bounds crash relating to stasis wall 2018-04-28 11:45:16 -04:00
jacob1
be57130c7a fix crash when particles are out of bounds 2018-04-28 00:27:03 -04:00
jacob1
777cb967a5 add M_PI definition back 2018-04-28 00:26:43 -04:00
jacob1
db8b32363e remove tpt-math.h includes 2018-04-28 00:09:14 -04:00
jacob1
29920c8999 remove trig tables, they are unused and alternatives are faster 2018-04-28 00:04:42 -04:00
jacob1
d56a4ee378 make RNG a singleton, update a few calls and start using between/chance functions 2018-04-28 00:01:08 -04:00
jacob1
f9211c2f90 msvc compile fix 2018-04-23 22:46:28 -04:00
jacob1
de757bc2c3 made sure the windows version actually compiled 2018-04-23 22:32:03 -04:00
jacob1
601af1feff fix compile warnings, remove ugly PRTI/PRTO hack 2018-04-23 21:57:30 -04:00
Saveliy Skresanov
1c600249dc Remove a useless header. 2018-04-23 22:55:22 +07:00
Saveliy Skresanov
7afd82469e Use vector math in cyclone. 2018-04-23 22:48:10 +07:00
Saveliy Skresanov
cda029ff42 Use xoroshiro128+ random generator (everywhere besides BSON code). 2018-04-23 22:47:44 +07:00
jacob1
fbe81baca3 make Platform::ExecutableName return std::string (fixes minor memory leak)
update code is untested
2018-04-21 19:28:47 -04:00
Vgr E. Barry
90cfd1f70f Add inverted mode for TSNS and PSNS with .tmp == 2 2018-04-21 12:36:25 -04:00
jacob1
9211fab9f7 fix memory leak when saving stamps 2018-04-21 00:34:49 -04:00
jacob1
6731fa16b7 fix memory leaks when loading stamps ('l') and viewing saves 2018-04-21 00:15:15 -04:00
moonheart08
22b9bf4953 Adds RAYT (#540) 2018-04-10 21:32:19 -04:00
krawthekrow
64b7fcf334 fix single-particle PSTN bug 2018-04-08 20:10:51 -04:00
jacob1
70b02301ff fix compile error 2018-04-05 23:40:21 -04:00
jacob1
11b2f58db7 define M_PI in tpt-math.h 2018-04-05 23:31:28 -04:00