Permalink
Browse files

Adds changes lost when migrating to GitHub.

The processing of the spritepos files builds the name of the sprite from the
part before the colon.
  • Loading branch information...
Julien Jorge
Julien Jorge committed Sep 25, 2013
1 parent c5f9f0a commit f96c915f046e82d103bf1bd5c66d39efeb69a18d
Showing with 6 additions and 1 deletion.
  1. +6 −1 bear-engine/core/src/engine/code/spritepos.cpp
@@ -106,7 +106,12 @@ void bear::engine::spritepos::load( std::istream& f )
if ( !line.empty() )
if ( line[0] != '#' )
{
std::string::size_type pos = line.find_first_of(':');
std::string::size_type pos( line.find_first_of(':') );
const std::string::size_type next
( line.find_first_of( ':', pos + 1 ) );
if ( next != std::string::npos )
pos = next;
std::string n( line.substr(0, pos) );
claw::text::trim(n);

0 comments on commit f96c915

Please sign in to comment.