Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor map::shoot() to use string-based terrain id instead of oldter(). #6195

Merged
merged 1 commit into from Feb 19, 2014

Conversation

Projects
None yet
2 participants
@kevingranade
Copy link
Member

commented Feb 19, 2014

It was making stairs evaporate when you shot them. Reported by Ember on the forums.
Who knows what else it was doing.
It LOOKS extensive, but all I really did was take:

switch( oldter())
    old_t_foo:
        // do stuff;
    break;

and turn it into:

if( 0 == terrain.id.compare("t_foo") ) {
    // do_stuff;
}

Fixes #6192

Refactor map::shoot() to use string-based terrain id instead of oldte…
…r(), it was making stairs evaporate when you shot them. Reported by Ember on the forums.

@KA101 KA101 merged commit 0bdadda into CleverRaven:master Feb 19, 2014

@kevingranade kevingranade deleted the kevingranade:no-evaporating-stairs branch Apr 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.