~ubuntu-branches/ubuntu/natty/plee-the-bear/natty

« back to all changes in this revision

Viewing changes to bear-factory/model-editor/src/bf/xml/code/model_sound_node.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    Bear Engine - Model editor
3
3
 
4
 
    Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
    Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
    This program is free software; you can redistribute it and/or modify it
7
7
    under the terms of the GNU General Public License as published by the
30
30
 
31
31
#include "bf/sound_description.hpp"
32
32
#include "bf/xml/reader_tool.hpp"
 
33
#include "bf/xml/util.hpp"
33
34
 
34
35
#include <claw/assert.hpp>
35
36
 
60
61
( const sound_description& s, std::ostream& os ) const
61
62
{
62
63
  if ( !s.get_file().empty() )
63
 
    os << "<sound file=\"" << s.get_file() << "\" global=\""
 
64
    os << "<sound file=\""
 
65
       << xml::util::replace_special_characters(s.get_file()) << "\" global=\""
64
66
       << s.is_played_globally() << "\"/>\n";
65
67
} // model_sound_node::write()