Commit Graph

226 Commits

Author SHA1 Message Date
Simon Robertshaw
7a055a9d90 More unnecessary string duplication 2013-03-12 21:29:27 +00:00
Simon Robertshaw
35b7f62d3b Remove unnecessary string duplication (http_init creates an internal copy of the proxy string) 2013-03-12 21:27:42 +00:00
Simon Robertshaw
aae7113c81 Remove images from image cache on exit 2013-03-12 21:24:56 +00:00
Simon Robertshaw
de680a1e5c Merge 2013-03-12 21:21:01 +00:00
Simon Robertshaw
86b7a11800 Make thumbnailbroker more general purpose, image requests for requestbroker, avatars in previewview 2013-03-12 21:17:19 +00:00
cracker64
f2823b0ee8 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2013-03-10 23:27:22 -04:00
cracker64
2caa240d9d Delete thumbnails on close. 2013-03-10 23:23:17 -04:00
jacob1
a65d93523d fix small free/delete mismatch / a warning 2013-03-10 23:21:28 -04:00
jacob1
85d6c12721 fix stamp thumbnails not showing until you move the mouse, add a few new[]'s replacing some .c_str() pointers in client.cpp 2013-03-10 22:08:00 -04:00
Simon Robertshaw
e6bca489c9 AvatarButton/holder, rename ThumbnailBroker for more general purposes 2013-03-10 18:08:34 +00:00
cracker64
a9e66429d6 Fix some memory issues when closing preview UI too fast.
I'm not sure if this pthread usage is ideal, but it does seem to work on linux.
2013-03-09 22:47:08 -05:00
jacob1
189f96d35f case insensetive local save searches, fix extention being counted in the match 2013-03-08 22:31:08 -05:00
jacob1
037618e6f8 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
jacob1
8b83ae9f95 PSTN ctype sets the element that stops it, FRME with a tmp of one is non-sticky (doesn't pull) 2013-03-03 16:36:37 -05:00
jacob1
b92bd245c8 fix 4 MB memory leak on every save 2013-02-24 15:23:34 -05:00
jacob1
0939494747 fix problems found with valgrind with shifting stamps and saving 2013-02-24 14:12:48 -05:00
jacob1
7379a6b5ba fix crash when hovering the mouse over invalid wall types 2013-02-24 11:50:20 -05:00
Simon Robertshaw
5beb4255c8 Tag origin version info in save files 2013-02-17 11:30:53 +00:00
jacob1
01cd146ee9 fix mac compiling, fix renderer, fix other minor compiling issues 2013-02-14 23:31:31 -05:00
Simon Robertshaw
e7b174a78d Revert "move version info to version.h, no longer needs full recompile on version change"
This reverts commit b3a2ab735b.
2013-01-19 22:00:56 +00:00
jacob1
b3a2ab735b move version info to version.h, no longer needs full recompile on version change 2013-01-15 11:28:28 -05:00
jacob1
41751da619 change some free/malloc's back to delete/new's 2013-01-12 21:06:52 -05:00
jacob1
5e20dd8545 allow directory search to find files with the extension repeated twice 2013-01-07 17:39:05 -05:00
jacob1
d1abfc313e fix mismatched free()/delete's 2013-01-06 18:26:38 -05:00
jacob1
0159c2b5af more scons fixes for windows 2012-12-29 12:45:43 -05:00
jacob1
e685e30d58 make sure that simulation variables are initialized, fixes things like water equalization always being on in old saves 2012-12-18 13:33:29 -05:00
jacob1
c06afff0a5 selecting a stamp moves it to the front of the list again (unless you hold ctrl)
attempted to do MVC right?
2012-12-18 12:20:52 -05:00
jacob1
672c5ee913 fix mismatched malloc() / delete [], fixes # 106 2012-12-17 23:57:55 -05:00
jacksonmj
9c6f3c7fbb Fix crash in GameSave::serialiseOPS
Only particlesCount particles have been copied from the Simulation.
All the rest are uninitialised, and may have coordinates outside the
game area. Using those uninitialised coordinates in the index for
partsPosFirstMap may cause a crash.
2012-12-16 23:01:04 +00:00
Simon Robertshaw
d29c77b2d5 More detailed error when opening non-existent directory. 2012-12-16 16:41:30 +00:00
Simon Robertshaw
4d546b6818 Print errors regardless of build type 2012-12-16 16:40:29 +00:00
jacob1
06f8f88374 fix output appearing in stdout without DEBUG defined 2012-12-16 11:38:12 -05:00
jacob1
a85526bfac fix comment error messages not showing 2012-12-15 23:12:54 -05:00
Simon Robertshaw
6e62a54952 Add missing URL Protocol registration on Windows 2012-12-15 16:56:55 +00:00
jacob1
d57fe7618c fix walls loading incorrectly in extremely old saves. Fix some invalid save formats being loadable (it was onlychecking the 'O' in OPS) 2012-12-12 17:31:06 -05:00
Simon Robertshaw
38862a78d1 New Conversation notifications 2012-12-09 12:05:27 +00:00
Simon Robertshaw
6478ed121c Use NotifyAuthUserChanged for GameController login, this will help users become aware when their sessions expire. 2012-12-09 01:25:05 +00:00
Simon Robertshaw
05148e8a8d C++erific text cleaner function, also, it's a good idea to actually clean text coming from signs... 2012-12-09 00:14:48 +00:00
jacob1
e5a284a2ba fix compiling warnings / error 2012-12-06 12:34:32 -05:00
Simon Robertshaw
b08812569c Stop using persistent connections when we don't need them. Force shutdown of Thumbnailbroker before http lib close, fixes #84 2012-11-26 10:34:17 +00:00
Simon Robertshaw
483e907702 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2012-11-18 18:02:34 +00:00
Simon Robertshaw
af29942117 Ensure directory enumeration works whether there's a path seperator at the end of the directory or not 2012-11-18 18:02:28 +00:00
jacob1
4654a2aaa0 update build number, which was incorrect. Add an easy way for mods to ignore updates 2012-11-18 12:43:11 -05:00
Simon Robertshaw
51a5af6d5d Remove some debug printing 2012-11-12 10:48:20 +00:00
Simon Robertshaw
29189693b3 Element palette for automatic element ID/mod mapping 2012-11-12 10:22:16 +00:00
jacob1
3a29fc0268 Save local saves as current name option (overwrites them automatically). Fix filename not showing when first saving a local save 2012-10-26 15:15:38 +01:00
jacob1
fd07d35e34 limit the number of signs that can be placed 2012-10-26 15:13:00 +01:00
jacob1
5c59b9d6cb don't render fire on stamps (reduces lag) 2012-10-05 15:49:54 +01:00
Simon Robertshaw
b35fd0298c Flush stamps list to file when deletins, Rename stamps undelete function to rescan 2012-10-05 15:46:42 +01:00
jacob1
7313bd81ca fix problem with last commit
there was no other missing stamps problem actually, just this
2012-10-05 15:23:24 +01:00
jacob1
d45dd605e9 Stamp fix button to bring back deleted stamps 2012-10-05 15:20:33 +01:00
jacob1
cb8efcd0f9 fix visual studio compiling errors (but not the dirent.h one) 2012-10-05 15:19:00 +01:00
Simon Robertshaw
58763f0900 Fix stamp library loading issue (wasn't loading beyond 512 bytes, readsome doesn't always reach eof before not reading n 2012-10-01 13:36:56 +01:00
Simon Robertshaw
0801497ed2 Fix wall clipping during stamp rotation 2012-10-01 12:02:04 +01:00
Simon Robertshaw
163fbde8af Fix issue where thumbnails are sometimes the incorrect ones 2012-10-01 00:15:09 +01:00
jacob1
f652786557 fix saves getting corrupted when saving, fix error messages not showing (correctly) 2012-09-30 20:46:08 +01:00
jacob1
b3741cd67c lock icon on unpublished saves 2012-09-29 23:03:02 +01:00
Simon Robertshaw
261c654ca0 HTTP/1.1: Allow multiple whitespace characters in header fields 2012-09-28 17:19:00 +01:00
Simon Robertshaw
25d872ec48 MacOS X targets for Scons, Fix some inlines for clang 2012-09-25 17:53:48 +01:00
Simon Robertshaw
5b52ac3675 Save history and new multiline formatter 2012-09-13 22:39:01 +01:00
Simon Robertshaw
771d5df5c9 Fix buffer overflow with HTTP headers caused by recent \r\n commit" 2012-09-11 13:13:24 +01:00
Simon Robertshaw
5da70ef8a6 Ensure errors are caught and displayed during tag operations. Fix some issues with the Tag ui. Fixes #157 2012-09-05 19:47:03 +01:00
Simon Robertshaw
7d9f8a0b1d Use \r\n instead of just \n for HTTP headers 2012-09-03 17:37:58 +01:00
Simon Robertshaw
612dca950d Move class definitions for ThumbnailBrokeer into header 2012-09-03 17:37:25 +01:00
Simon Robertshaw
b05f114174 Views in save Preview and use old vote bars. Fixes #171 2012-09-03 13:25:48 +01:00
Simon Robertshaw
1ac964d9ba Ensure saves are expanded in memory when performing translate operations. Fixes #174 2012-09-03 12:38:09 +01:00
Simon Robertshaw
9751c962b1 No default description, fixes #153 2012-09-01 18:33:28 +01:00
Simon Robertshaw
0ca680f4c8 Enable decorations in renderer for local save items, disable for server save previews. 2012-08-27 13:32:17 +01:00
Simon Robertshaw
082072a05e OPS: Fix byte order when unpacking 4 byte tmp fields 2012-08-25 16:29:27 +01:00
Simon Robertshaw
a8d4bdeb2d Fix install crash (somehow, I commented out the bit the gets the current directory, leading to strlen op on a NULL pointer), fixes #145 2012-08-24 19:03:20 +01:00
Simon Robertshaw
62f067d29d Fix stamps page count 2012-08-21 14:06:54 +01:00
Simon Robertshaw
b639da3692 Use collapsed saves when using stamp browser, fix memory leak when saving stamps 2012-08-21 13:30:30 +01:00
Simon Robertshaw
ba1ce66968 Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138 2012-08-21 01:09:22 +01:00
Simon Robertshaw
b318c3721a TPT: Powered pipe, based on jacob1's commits 2012-08-20 16:48:03 +01:00
Simon Robertshaw
43ed72b4c5 Fix a few small (a lot of big) memory leaks associated with the stamps browser 2012-08-19 21:31:24 +01:00
Simon Robertshaw
9dd9d52564 Herp derp, forgot to call dealloc in GameSave destructor 2012-08-19 20:57:14 +01:00
Simon Robertshaw
c0c30bd305 Looks like calling the destructor manually is not a good idea. 2012-08-19 20:44:50 +01:00
Simon Robertshaw
b1df1e164c Catch exceptions when loading initial stamp 2012-08-19 18:57:29 +01:00
Simon Robertshaw
97a819c79c Fix autoupdate issue where temp file is not deleted, fixes #128 2012-08-18 12:44:07 +01:00
Simon Robertshaw
21f050800b Load signs from OPS data 2012-08-17 17:08:24 +01:00
Simon Robertshaw
d24e439a1e Red error, ensure residual actiondata is not read for RichLabel 2012-08-17 17:02:02 +01:00
Simon Robertshaw
fc1274f381 Fix crash caused by malformed preference files, fixes #110 2012-08-14 18:14:06 +01:00
Simon Robertshaw
a76e4d71a9 Name colour formatting in comments 2012-08-14 17:20:47 +01:00
Simon Robertshaw
4f3e03e317 Update gitignore, show votes correctly, fixes #97 2012-08-14 13:06:10 +01:00
Simon Robertshaw
c877e445b9 Remove temp files created by scheme handling 2012-08-14 12:36:50 +01:00
Simon Robertshaw
53b8e8ca78 ptsave scheme handling for Linux, addresses #97 2012-08-14 12:36:04 +01:00
Simon Robertshaw
b05a847e96 Fix crash when using search (std::remove doesn't seem to work as I expected), Add clickable author names for search. Fixes #95 2012-08-14 12:03:33 +01:00
Simon Robertshaw
651546b5bf Fix bug where thumbnails would not always show in the search 2012-08-13 21:08:55 +01:00
Simon Robertshaw
074dcd0b42 Precompile some headers. Fix sconscript to prevent recompiling everything 2012-08-13 15:43:57 +01:00
Simon Robertshaw
8ca27520a4 Use forward declarations more to avoid excessive includes 2012-08-12 22:32:57 +01:00
Simon Robertshaw
5d3d1d4916 Message of the day and user session check on startup 2012-08-12 15:15:47 +01:00
Simon Robertshaw
cd051924d9 Installation with Ctrl+I, fixes #77 2012-08-10 15:41:39 +01:00
Simon Robertshaw
d352a10d80 PTsave opening 2012-08-08 21:32:10 +01:00
Simon Robertshaw
9f1301df5a Perhaps FileExists shouldn't erase file contents... 2012-08-08 20:05:47 +01:00
Simon Robertshaw
346e9d2168 Proxy from command line arg 2012-08-08 18:34:37 +01:00
Simon Robertshaw
4ce22e4e77 Wall Edge option, fixes #70 2012-08-05 18:35:12 +01:00
Simon Robertshaw
5a2da01a5b Tags, fixes #55 2012-08-04 20:55:59 +01:00
ntoskrnl
f94fabd999 Rename WIN32 preprocessor definition to WIN 2012-08-02 15:21:16 +01:00
Simon Robertshaw
cbefea85d7 Local Saving, Server Saving rewrite 2012-08-01 22:29:22 +01:00
Simon Robertshaw
1d258eab6b ThumbnailBroker for background retrieval and rendering 2012-07-31 19:49:08 +01:00