MQtoSMTL Update

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

MQtoSMTL Update

Post by MacroFiend » Tue Nov 04, 2003 11:59 pm

In order to account for proper spacing on MQChat output, we need to convert double spaces in to nbsp;  Otherwise, multiple spaces will be compressed in to a single space.

In EQLib_Utilities.cpp - MQtoSMTL Function

Code: Select all

	BOOL bFirstColor=false;[color=red]
	BOOL bNBSpace=false;[/color]
	DWORD CurrentColor=0xFFFFFFFF; // -1

Code: Select all

			break;[color=red]
		case ' ':
			if (bNBSpace) {
				out[pchar_out_string_position++]='&';
				out[pchar_out_string_position++]='N';
				out[pchar_out_string_position++]='B';
				out[pchar_out_string_position++]='S';
				out[pchar_out_string_position++]='P';
				out[pchar_out_string_position++]=';';
			} else {
				out[pchar_out_string_position++]=' ';
			}
			bNBSpace++;
			break;[/color]
		case '&':
*edit: It was stripping out single spaces.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Nov 05, 2003 8:46 am

CVS'd
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Nov 05, 2003 8:49 am

Err.. modified to work like it's supposed to and CVSd anyway :)
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0