From 9736548720a96c9c7f739edb0435d9ba4ad80652 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 15 Jan 2015 16:20:05 -0500 Subject: Add ability to delete MapBlocks from map Also add a Lua API and chatcommand for this --- src/database-sqlite3.cpp | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'src/database-sqlite3.cpp') diff --git a/src/database-sqlite3.cpp b/src/database-sqlite3.cpp index 8e1501786..7faffb01c 100644 --- a/src/database-sqlite3.cpp +++ b/src/database-sqlite3.cpp @@ -131,13 +131,11 @@ void Database_SQLite3::verifyDatabase() { throw FileNotGoodException("Cannot prepare write statement"); } -#ifdef __ANDROID__ d = sqlite3_prepare(m_database, "DELETE FROM `blocks` WHERE `pos`=?;", -1, &m_database_delete, NULL); if(d != SQLITE_OK) { infostream<<"WARNING: SQLite3 database delete statment failed to prepare: "<