.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
minor change to the chatengine.cpp
Old
  (#1)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default minor change to the chatengine.cpp - 21-07-2004

Code:
// fill in the word:
// 03/07/04
// evy: specific translation for French/Spanish accute letters...
switch (sentence[c]) {
	case '\xE0': word[wc]='a' ; break ;
	case '\xE2': word[wc]='a' ; break ;
	case '\xE4': word[wc]='a' ; break ;
	case '\xE7': word[wc]='c' ; break ;
	case '\xE9': word[wc]='e' ; break ;
	case '\xEA': word[wc]='e' ; break ;
	case '\xE8': word[wc]='e' ; break ;
	case '\xEF': word[wc]='i' ; break ;
	case '\xF1': word[wc]='n' ; break ;
	case '\xF6': word[wc]='o' ; break ;
	case '\xF4': word[wc]='o' ; break ;
	case '\xF9': word[wc]='u' ; break ;
	case '\xFB': word[wc]='u' ; break ;
	case '\xFC': word[wc]='u' ; break ;
	default: word[wc] = sentence[c];
...to make it buildable under some localized versions of OS's, especially those which uses double-byte characters like Chinese, Japanese and Korean. Otherwise MSVC will complain.

Note: All the characters which is larger than 127 will be treated as double-byte characters under those localized OS's, along with the next byte.
  
Reply With Quote
Re: minor change to the chatengine.cpp
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: minor change to the chatengine.cpp - 23-07-2004

MSVC compiles fine here with these changes?

anyway, your sollution sounds more neat; thx for the contribution!


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com