82a19b6cae
parseColorsStream: fix empty/white lines detection
...
When input line is empty, sscanf does not write a '\0' to the %s target.
Initialize its first byte to '\0' to properly detect empty lines after.
Next, we do not want to stop reading the file upon reading an empty line:
use continue instead of break.
The latter was not noticed because of the former.
2016-10-08 20:32:23 +02:00
5a174e7980
parseColorsStream: fix comment stripping
...
p is incremented too soon to be able to see '#' on first character.
Use a conventional for loop.
2016-10-08 20:05:03 +02:00
5558c3dd63
fix parseColorsStream
...
Fixes: 173dd75b31
("Simplify color parsing code")
2016-10-08 19:47:57 +02:00
173dd75b31
Simplify color parsing code
2016-10-08 13:39:07 +02:00
73dab34d7c
Allow specifying location of colors.txt file
2016-08-09 16:45:39 +02:00
2ed45633a4
Warn on big image dimensions, fixes #14
2016-08-09 16:04:58 +02:00
15fae27b85
Zoom implementation (--zoom option)
2016-08-09 15:35:36 +02:00
ce759d7724
Fix --{min,max}-y, thanks to @PilzAdam
2015-10-29 23:13:41 +01:00
a361e4d1eb
Rename some variables to make their purpose clearer
2015-03-18 22:49:19 +01:00
70b75507fe
Clarify function of thickness param of nodes
2015-03-18 22:22:10 +01:00
722f02d121
Add workaround for color.txt parsing on MinGW
2014-12-20 13:09:56 +01:00
1c47825d70
Fix number rounding, clarify comment and change var. names
2014-09-02 14:49:56 +02:00
b7f0a8a29a
Fix --geometry producing wrong results
2014-09-01 18:42:50 +02:00
88df29a6b3
Add CMake option to use C++11 features
2014-08-02 16:31:45 +02:00
2cc1ffc543
Re-add --backend to allow overriding auto-detected backend
2014-07-11 10:54:50 +02:00
e85a49873a
Fix --drawalpha
2014-07-08 15:08:07 +02:00
20691186b5
Read backend from world.mt, closes #6
2014-07-08 15:08:07 +02:00
fe534d9026
Fix #2
2014-07-08 14:02:20 +02:00
dff4589152
Improve color parsing, hopefully fixes #7
2014-05-21 15:16:29 +02:00
2553e44e8d
Add redis database backend
2014-04-26 15:03:32 +02:00
22d3e401f8
Don't use a temporary table for block positions
...
This also moves database functions and data structures to db.h
2014-04-19 02:13:34 -04:00
2a4681d5c8
Tabs -> spaces
2014-04-03 20:38:09 +02:00
84d46ab8eb
Add alpha transparency ability for blocks
2014-04-03 20:32:48 +02:00
ac04a7bc8a
Remove embedding of colors.txt in executable
2014-03-28 17:40:00 -04:00
5905c34ec0
Significantly optimize LevelDB database backend
2014-03-28 17:38:56 -04:00
d92ef319f1
Fix SEGV after failing to open output file: throw runtime error
...
The result of opening the file was not checked, resulting in a
NULL pointer dereference if it failed.
2014-03-26 16:31:42 +01:00
a15bc30071
Fix computation of block number bounds (off-by-one)
...
The block numbers could be off by one due to incorrect rounding.
m_geom* now contain the minimum and maximum block numbers that
should be in the map.
2014-03-26 16:29:33 +01:00
ec037dd924
Fix --min-y and --max-y handling
2014-03-26 16:28:24 +01:00
f8edccffb7
Small optimization
2014-03-22 09:30:14 +01:00
5bf2039bbb
Make sure whole map is always drawn
2014-03-16 20:55:09 +01:00
46023f77f5
Make it (almost) compile for windows
2014-03-09 12:32:13 +01:00
0a5a0d0d51
Fix sqlite3 not being usable as backend
2014-03-05 22:40:01 +01:00
393d7e2ac0
LevelDB support
2014-03-05 21:42:21 +01:00
15444ff8f6
Add --min-y and --max-y options
2014-03-05 18:06:05 +01:00
33f323b1e3
Add --noshading option, Fix SIGABRT because of uncaught exception when any exception occured
2014-03-05 17:20:06 +01:00
6b511e5e79
Fix unknown nodes showing up as black
2013-03-18 14:12:02 -04:00
7d15dbf4ed
Added --geometry support.
2012-11-24 19:25:13 +01:00
5969c61e54
Removed hard size limit.
2012-11-24 18:43:48 +01:00
28e9450573
Zlib moved into separate module.
2012-09-18 10:43:34 +02:00
6133aff2f3
Small cast cleaning.
2012-09-18 10:15:50 +02:00
7c5f4751f6
Player attributes moved to separate class.
2012-09-01 16:40:18 +02:00
88bf8bc88b
Fixed windows compatibility.
2012-09-01 16:01:08 +02:00
112ccc5d08
File colors.txt compiled into binary
2012-09-01 15:51:02 +02:00
1edbba5a94
Added path separator handling.
2012-09-01 13:41:00 +02:00
6dff561ec0
Rendering Z blocks in reverse order.
2012-09-01 13:34:27 +02:00
b9e40ed972
Removed Boost dependency.
2012-09-01 13:01:31 +02:00
cb65bbbc4c
Better sqlite3_open error reporting.
2012-09-01 12:19:33 +02:00
4d9a3cc5d9
Added windows support.
2012-08-28 11:27:51 +02:00
e5cafeb8b8
Fixed crash on std::length_error
2012-08-27 07:46:11 +02:00
5a2375e608
Added printing of unknown nodes.
2012-08-25 16:41:53 +02:00