Author: dave
Date: Sun Mar 23 06:33:27 2008
New Revision: 25003
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25003&view=rev
Log:
attempt to fix problem with WML ordering
Modified:
trunk/src/server/simple_wml.cpp
Modified: trunk/src/server/simple_wml.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/simple_wml.cpp?rev=25003&r1=25002&r2=25003&view=diff
==============================================================================
--- trunk/src/server/simple_wml.cpp (original)
+++ trunk/src/server/simple_wml.cpp Sun Mar 23 06:33:27 2008
@@ -409,11 +409,9 @@
int node::output_size() const
{
-/*
if(output_cache_.empty() == false) {
return output_cache_.size();
}
- */
int res = 0;
for(attribute_list::const_iterator i = attr_.begin(); i != attr_.end();
++i) {
@@ -452,14 +450,13 @@
void node::output(char*& buf)
{
-/*
if(output_cache_.empty() == false) {
memcpy(buf, output_cache_.begin(), output_cache_.size());
shift_buffers(buf - output_cache_.begin());
buf += output_cache_.size();
return;
}
-*/
+
char* begin = buf;
for(std::vector<attribute>::iterator i = attr_.begin(); i !=
attr_.end(); ++i) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits