Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » STRLINWRP
Forum Rules | Mark all | Recent Posts

STRLINWRP
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Dec 30, 2008, 7:53 am
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

So, I was working on the editor code (Cronel's) last night. One thing I'm noticing is that when strlinwrp is looking to place a space, it goes after the current word its looking at. The problem I see with that is it allows that word to have a few characters over the length declared. In my opinion, it'd be much better to drop that current word. However, I'm unsure how to go about something like that. I'm not sure if I explained that well so someone yell at me if its confusing.
       
Post is unread #2 Dec 30, 2008, 11:53 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,857
JoinedJul 26, 2005

While I can't remember who's code it was there was an editor code that did wrapping on long lines that had some issues. It sounds very similar to what your talking about. When you use different words etc it will work fine and as you say just go a few over (which it probably shouldn't), but if you use no spaces and type a lot of stuff in it can even crash if I remember right. What should happen is you toss it into another char string (think it does that already for the code) and instead of looking for a space at the limit toss in a - and wrap around to the next line regardless of spaces etc... The only way I wouldn't put the - is if it would be replacing a space. Just my thoughts on it :)
       
Pages:<< prev 1 next >>