This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program received signal SIGFPE, Arithmetic exception. | |
[Switching to Thread 0x7fffd97f9700 (LWP 4275)] | |
0x000000000078c1f7 in getContainerPos (d=0, p=<optimized out>) at /home/adam/Minetest/minetest/src/util/numeric.h:50 | |
50 return (p>=0 ? p : p-d+1) / d; | |
(gdb) bt full | |
#0 0x000000000078c1f7 in getContainerPos (d=0, p=<optimized out>) at /home/adam/Minetest/minetest/src/util/numeric.h:50 | |
No locals. | |
#1 getContainerPos (d=0, p=...) at /home/adam/Minetest/minetest/src/util/numeric.h:64 | |
No locals. | |
#2 ServerMap::initBlockMake (this=0x132bf70, data=data@entry=0x7fffd97f8c70, blockpos=...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/rollback.cpp b/src/rollback.cpp | |
index bae81dd..647393d 100644 | |
--- a/src/rollback.cpp | |
+++ b/src/rollback.cpp | |
@@ -203,41 +203,41 @@ bool SQL_createDatabase(void) | |
infostream << "CreateDB:" << dbp << std::endl; | |
int dbs = sqlite3_exec(dbh, | |
- "CREATE TABLE IF NOT EXISTS `actor` (" | |
- "`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/astyle.orig/src/ASBeautifier.cpp b/astyle/src/ASBeautifier.cpp | |
index 7a5607a..f492aa8 100755 | |
--- a/astyle.orig/src/ASBeautifier.cpp | |
+++ b/astyle/src/ASBeautifier.cpp | |
@@ -1137,20 +1137,12 @@ void ASBeautifier::registerInStatementIndent(const string &line, int i, int spac | |
tabIncrement += convertTabToSpaces(j, tabIncrement); | |
} | |
- inStatementIndent = i + nextNonWSChar + spaceTabCount_ + tabIncrement; | |
+ inStatementIndent = indentLength * 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/porting.h b/src/porting.h | |
index ea7f31b..fadeea4 100644 | |
--- a/src/porting.h | |
+++ b/src/porting.h | |
@@ -213,7 +213,17 @@ | |
inline u32 getTimeNs() | |
{ | |
struct timespec ts; | |
- clock_gettime(CLOCK_REALTIME, &ts); | |
+#ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adam@ubuntu:~/Minetest/minetest $ bin/minetest --world /home/adam/Minetest/minetest/worlds/RandomNT --gameid nodetopia --random-input --go | |
[...] | |
22:02:50: ACTION[main]: World at [/home/adam/Minetest/minetest/bin/../worlds/NodetopiaTest] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local timer = 0 | |
minetest.on_globalstep(function(dtime) | |
timer = timer + dtime | |
if timer < 5 then | |
return | |
end | |
timer = 0 | |
-- do stuff | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
towny = {} | |
local function make_registration() | |
local t = {} | |
local registerfunc = function(func) table.insert(t, func) end | |
return t, registerfunc | |
end | |
towny.registered_on_town_join, towny.register_on_town_join = make_registration() | |
-- wenn dann ein player einer town joined: (also wenn der spielre den button drückt oder so) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua | |
index 73f0436..d8c2b63 100644 | |
--- a/builtin/mainmenu.lua | |
+++ b/builtin/mainmenu.lua | |
@@ -178,7 +178,7 @@ function update_menu() | |
if gamedata.errormessage ~= nil then | |
formspec = "size[12,5.2]" .. | |
"textarea[1,2;10,2;;ERROR: " .. | |
- gamedata.errormessage .. | |
+ engine.formspec_escape(gamedata.errormessage) .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) thread apply all bt | |
Thread 26 (Thread 0x7fffabfff700 (LWP 4418)): | |
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85 | |
#1 0x0000000000608bf7 in Event::wait (this=this@entry=0x11d1ba8) at /home/adam/Minetest/minetest/src/jthread/pthread/jevent.cpp:45 | |
#2 0x00000000006f8f29 in EmergeThread::Thread (this=0x11d1ae0) at /home/adam/Minetest/minetest/src/emerge.cpp:468 | |
#3 0x0000000000608f58 in JThread::TheThread (param=0x11d1ae0) at /home/adam/Minetest/minetest/src/jthread/pthread/jthread.cpp:203 | |
#4 0x00007ffff69d5f8e in start_thread (arg=0x7fffabfff700) at pthread_create.c:311 | |
#5 0x00007ffff55dda0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minetest.register_on_mapgen_init(function(params) | |
minetest.set_mapgen_params({ | |
mgname = "v7", | |
seed = params.seed, | |
water_level = 1, | |
flags = { | |
trees = false, | |
caves = true, | |
flat = false, | |
dungeons = false, |