This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src
Tamás Bálint Misius 0bdf7ad914
Prevent newlines from being needlessly appended (fixes #667)
That wrap_if_needed call would sometimes cause empty newlines
to appear under otherwise already well-wrapped blocks of text.

The idea is that whenever a new character is about to be appended,
the current line is checked for being too long with that character
included, and the character is only actually appended after the
wrapper makes sure that appending it won't overflow the line by
inserting a newline. This means that wrap_if_needed is only ever
called before pushing the current character to records, never
after, as was the case here.
2019-08-02 16:58:39 +02:00
..
bson Remove inclusion of deprecated C++ headers 2019-01-31 20:09:15 -05:00
client Prevent protocol downgrade attacks 2019-08-02 01:31:02 +02:00
common Use C++11 threads 2019-04-17 00:23:57 +02:00
debug Flatten include trees 2019-04-20 15:36:11 +02:00
graphics Replace a few occurrences of hard-coded font height with FONT_H 2019-07-31 23:57:13 +02:00
gui Prevent newlines from being needlessly appended (fixes #667) 2019-08-02 16:58:39 +02:00
json use override in all possible places 2019-03-09 21:07:32 -05:00
lua Fix tpt.eltransition.<elem>.presHighType 2019-07-31 22:10:35 -04:00
powdertoyjava Nuke using namespace std; 2019-04-20 17:03:23 +02:00
resampler Strip whitespace from files in repo (#553) 2018-04-03 21:46:01 -04:00
simulation Okay, it wasn't functionally equivalent (see 79f9a2d6) 2019-08-01 16:54:28 +02:00
tasks Flatten include trees 2019-04-20 15:36:11 +02:00
Activity.h use override in all possible places 2019-03-09 21:07:32 -05:00
Config.h Prevent protocol downgrade attacks 2019-08-02 01:31:02 +02:00
Controller.h remove auto generated comments from all files, fix some missing tabs, remove unused variables from config.h 2013-03-06 12:05:59 -05:00
Format.cpp Flatten include trees 2019-04-20 15:36:11 +02:00
Format.h Fix some C++14-isms. 2018-05-08 05:48:32 +03:00
Misc.cpp Flatten include trees 2019-04-20 15:36:11 +02:00
Misc.h Fix Element::Identifier assignment leak (closes #205) 2019-04-12 00:27:27 +02:00
Platform.cpp Flatten include trees 2019-04-20 15:36:11 +02:00
Platform.h embed event api compatibility lua script 2018-11-17 00:09:48 -05:00
PowderToy.h Flatten include trees 2019-04-20 15:36:11 +02:00
PowderToyRenderer.cpp Make Simulation.IncludePressure pref node accessible from OptionsView 2019-07-10 00:35:49 +02:00
PowderToySDL.cpp Implement file drop handler (#666) 2019-07-24 00:04:41 -04:00
Probability.cpp Flatten include trees 2019-04-20 15:36:11 +02:00
Probability.h Use xoroshiro128+ random generator (everywhere besides BSON code). 2018-04-23 22:47:44 +07:00
SDLCompat.cpp fix windows / renderer compile (renderer requires sdl for now) 2018-05-25 21:19:44 -04:00
SDLCompat.h fix windows / renderer compile (renderer requires sdl for now) 2018-05-25 21:19:44 -04:00
SDLMain.h New SConscript (hopefully better) 2014-06-08 19:33:58 -04:00
SDLMain.m Strip whitespace from files in repo (#553) 2018-04-03 21:46:01 -04:00
Update.cpp Flatten include trees 2019-04-20 15:36:11 +02:00
Update.h made sure the windows version actually compiled 2018-04-23 22:32:03 -04:00