small fixes
This commit is contained in:
parent
1e12f80dd6
commit
ca40b93344
@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "base",
|
||||
"title": "Base",
|
||||
"version": "0.16",
|
||||
"version": "0.18",
|
||||
"description": "basic content package"
|
||||
}
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
const int ENGINE_VERSION_MAJOR = 0;
|
||||
const int ENGINE_VERSION_MINOR = 18;
|
||||
|
||||
const int BLOCK_AIR = 0;
|
||||
const int ITEM_EMPTY = 0;
|
||||
|
||||
const int CHUNK_W = 16;
|
||||
const int CHUNK_H = 256;
|
||||
const int CHUNK_D = 16;
|
||||
|
||||
@ -48,7 +48,7 @@ ItemDef* ContentBuilder::createItem(std::string id) {
|
||||
|
||||
void ContentBuilder::checkIdentifier(std::string id) {
|
||||
contenttype result;
|
||||
if ((checkContentType(id) != contenttype::none)) {
|
||||
if (((result = checkContentType(id)) != contenttype::none)) {
|
||||
throw namereuse_error("name "+id+" is already used", result);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
#ifndef SRC_CORE_DEFS_H_
|
||||
#define SRC_CORE_DEFS_H_
|
||||
|
||||
/* blocks and bindings used in engine code */
|
||||
#include <string>
|
||||
|
||||
const int BLOCK_AIR = 0;
|
||||
|
||||
const std::string TEXTURE_NOTFOUND = "notfound";
|
||||
|
||||
/* bindings used in engine code */
|
||||
const std::string BIND_MOVE_FORWARD = "movement.forward";
|
||||
const std::string BIND_MOVE_BACK = "movement.back";
|
||||
const std::string BIND_MOVE_LEFT = "movement.left";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user