aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--signs/nodes.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/signs/nodes.lua b/signs/nodes.lua
index 18bf1d6..bad9811 100644
--- a/signs/nodes.lua
+++ b/signs/nodes.lua
@@ -28,9 +28,8 @@ local function display_poster(pos, node, player)
local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"]
-- Title texture
- local titletexture = font_api.make_multiline_texture(
- def.font_name, meta:get_string("display_text"),
- 116, 12, def.maxlines, def.valign, def.color)
+ local titletexture = font:make_text_texture(
+ meta:get_string("display_text"), 116, 12, 1, "center")
formspec =
"size[7,9]"..
id='n96' href='#n96'>96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
/*
Minetest-c55
Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
Copyright (C) 2012 Jonathan Neuschäfer <j.neuschaefer@gmx.net>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "filecache.h"
#include "clientserver.h"
#include "log.h"
#include "filesys.h"
#include "utility.h"
#include "hex.h"
#include "sha1.h"

#include <string>
#include <iostream>

bool FileCache::loadByPath(const std::string &path, std::ostream &os)
{