Skip to content
Snippets Groups Projects
Commit cdd8c153 authored by dg's avatar dg
Browse files

Fix flickering black screen bug

Summoning (Advanced) correctly learnable at level 10


git-svn-id: http://svn.net-core.org/repos/t-engine4@4975 51575b47-30f0-44d4-a5cc-537603b46e54
parent ac26b32b
No related branches found
No related tags found
No related merge requests found
......@@ -391,13 +391,13 @@ end
--- Get a string that will display in text the texture of this entity
function _M:getDisplayString(tstr)
if tstr then
if core.display.FBOActive() then
if core.display.FBOActive() or true then
return tstring{{"uid", self.uid}}
else
return tstring{}
end
else
if core.display.FBOActive() then
if core.display.FBOActive() or true then
return "#UID:"..self.uid..":0#"
else
return ""
......
......@@ -75,7 +75,7 @@ function _M:addPond(x, y, spots)
local lx, ly = l()
while lx do
-- print(lx, ly, nmap[lx][ly])
if nmap[lx][ly] > highest.v then highest.v = nmap[lx][ly]; highest.x = lx; highest.y = ly end
if nmap[lx] and nmap[lx][ly] and nmap[lx][ly] > highest.v then highest.v = nmap[lx][ly]; highest.x = lx; highest.y = ly end
lx, ly = l()
end
-- print("Highest pond point", highest.x, highest.y," ::", highest.v)
......@@ -86,7 +86,7 @@ function _M:addPond(x, y, spots)
while lx do
local stop = true
for _ = 1, #self.do_ponds.pond do
if nmap[lx][ly] < split * self.do_ponds.pond[_][1] then
if nmap[lx] and nmap[lx][ly] and nmap[lx][ly] < split * self.do_ponds.pond[_][1] then
pmap[lx][ly] = self.do_ponds.pond[_][2]
stop = false
break
......
......@@ -25,7 +25,7 @@ newTalentType{ allow_random=true, is_nature=true, type="wild-gift/summon-melee",
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/summon-distance", name = "summoning (distance)", description = "The art of calling creatures to your aid." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/summon-utility", name = "summoning (utility)", description = "The art of calling creatures to your aid." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/summon-augmentation", name = "summoning (augmentation)", description = "The art of calling creatures to your aid." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/summon-advanced", name = "summoning (advanced)", description = "The art of calling creatures to your aid." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/summon-advanced", name = "summoning (advanced)", min_lev = 10, description = "The art of calling creatures to your aid." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/slime", name = "slime aspect", generic = true, description = "Through dedicated consumption of slime mold juice, you have gained an affinity with slime molds." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/sand-drake", name = "sand drake aspect", description = "Take on the defining aspects of a Sand Drake." }
newTalentType{ allow_random=true, is_nature=true, type="wild-gift/fire-drake", name = "fire drake aspect", description = "Take on the defining aspects of a Fire Drake." }
......
......@@ -675,6 +675,7 @@ static int sdl_font_draw(lua_State *L)
{
// Push it & reset the surface
font_make_texture_line(L, s, nb_lines, is_separator, id_real_line, line_data, line_data_size, direct_uid_draw);
id_dduid = 1;
is_separator = FALSE;
SDL_FillRect(s, NULL, SDL_MapRGBA(s->format, 0, 0, 0, 0));
// printf("Ending previous line at size %d\n", size);
......@@ -853,6 +854,7 @@ static int sdl_font_draw(lua_State *L)
}
font_make_texture_line(L, s, nb_lines, is_separator, id_real_line, line_data, line_data_size, direct_uid_draw);
id_dduid = 1;
if (size > max_size) max_size = size;
if (txt) SDL_FreeSurface(txt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment