From 38b8de54387034749f7840352cd58a45213140da Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 22 Jul 2007 11:25:15 +0000 Subject: [PATCH] fixed tilemap rendering abit, editor.cfg added --- src/editor/editor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/editor/editor.cpp b/src/editor/editor.cpp index b76dd7148..2be626907 100644 --- a/src/editor/editor.cpp +++ b/src/editor/editor.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -34,6 +35,7 @@ static ent_type ent_types[] = { {"hammer", MAPRES_ITEM, ITEM_WEAPON_HAMMER}, {"health", MAPRES_ITEM, ITEM_HEALTH}, {"armor", MAPRES_ITEM, ITEM_ARMOR}, + {"ninja", MAPRES_ITEM, ITEM_NINJA}, {0, 0} }; @@ -312,7 +314,7 @@ static tileset *tilesets_get(int index) *********************************************************/ static void render_tilemap(tilemap *tm, float sx, float sy, float scale) { - float frac = (1.0f/512.0f); //2.0f; + float frac = (1.0f/1024.0f); //2.0f; gfx_quads_begin(); for(int y = 0; y < tm->height; y++) for(int x = 0; x < tm->width; x++) @@ -1208,6 +1210,8 @@ int editor_main(int argc, char **argv) { dbg_msg("editor", "starting..."); + config_load("editor.cfg"); + // parse arguments for(int i = 1; i < argc; i++) {