mirror of
https://github.com/xtreme8000/CavEX.git
synced 2025-01-22 09:11:55 -05:00
Item entity: render correct amount
This commit is contained in:
parent
5f4db4fb41
commit
8c580fac62
1 changed files with 4 additions and 4 deletions
|
@ -149,12 +149,12 @@ static void entity_render(struct entity* e, mat4 view, float tick_delta) {
|
|||
glm_mat4_mul(view, model, mv);
|
||||
|
||||
int amount = 1;
|
||||
if(e->data.item.item.count > 1) {
|
||||
amount = 2;
|
||||
if(e->data.item.item.count > 20) {
|
||||
amount = 4;
|
||||
} else if(e->data.item.item.count > 5) {
|
||||
amount = 3;
|
||||
} else if(e->data.item.item.count > 20) {
|
||||
amount = 4;
|
||||
} else if(e->data.item.item.count > 1) {
|
||||
amount = 2;
|
||||
}
|
||||
|
||||
vec3 displacement[4] = {
|
||||
|
|
Loading…
Reference in a new issue