mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-27 16:02:19 +00:00
shmup:: fixed the missiles for new character shapes
This commit is contained in:
parent
54bc5de3c4
commit
a01d5c7dbe
14
shmup.cpp
14
shmup.cpp
@ -3163,14 +3163,18 @@ bool celldrawer::draw_shmup_monster() {
|
||||
col = (mirrorcolor(det(view.T) < 0) << 8) | 0xFF;
|
||||
else
|
||||
col = (minf[m->get_parenttype()].color << 8) | 0xFF;
|
||||
if(getcs().charid >= 10) {
|
||||
queuepoly(at_missile_level(view), cgi.shMissile, col);
|
||||
ShadowV(view, cgi.shMissile);
|
||||
}
|
||||
else if(getcs().charid >= 4) {
|
||||
|
||||
int id = ePlayershape(getcs().charid >> 1);
|
||||
|
||||
if(playershapes[id].is_animal) {
|
||||
queuepoly(at_missile_level(view), cgi.shPHead, col);
|
||||
ShadowV(view, cgi.shPHead);
|
||||
}
|
||||
else if(!playershapes[id].is_humanoid) {
|
||||
// this means it is a spaceship
|
||||
queuepoly(at_missile_level(view), cgi.shMissile, col);
|
||||
ShadowV(view, cgi.shMissile);
|
||||
}
|
||||
else if(peace::on) {
|
||||
queuepolyat(at_missile_level(view), cgi.shDisk, col, PPR::MISSILE);
|
||||
ShadowV(view, cgi.shPHead);
|
||||
|
Loading…
x
Reference in New Issue
Block a user