Page 1 of 1

(fixed) Small bugs and differences

Posted: Sat Mar 24, 2007 7:23 pm
by Joramun
First of all : small difference in scroll display :

The vertical space between lines is two small in DSB (left) compared to RTC (rigth).
I will look in DM PC to see who is right, but I feel DSB is wrong on this one. Also maybe centering the text would be prettier but it's not really important.

EDIT: Picture. removed, bug fixed ;)

Other bugs :
- party back row gets hurt and party doesn't go upstairs when going backward on a stair tile (up or down)

Posted: Sat Mar 24, 2007 8:19 pm
by Sophia
I think I've fixed the scroll. Replace obj.scroll:subrenderer in base/objects.lua with the following:

Code: Select all

function obj.scroll:subrenderer(id)
	local sr = dsb_subrenderer_target()
	local lines, num_lines = dsb_linesplit(exvar[id].text, "/")
	local y_base = 72 - (num_lines*7) + (num_lines % 2)
	local i

	dsb_bitmap_blit(gfx.scroll_inside, sr, 0, 0, 0, 0, 246, 146)
	for i=1,num_lines do
	    dsb_bitmap_textout(sr, gfx.scroll_font, lines[i],
			124, y_base+((i-1)*14), CENTER, scroll_color)
	end	
end
I didn't do a side-by-side with DM PC (or RTC), but it looks more like your screenshot, anyway.
What do you think? If you want to tweak it some more, let me know if you have values you like more.

I fixed the stairs too.